[Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params

This commit is contained in:
Herman Semenov committed 2023-12-14 14:22:24 +03:00
1 parent 5a0d54be83
commit af41281761
43 files changed
+83 -83

No files matched your search

+1 -1
View File
@@ -608,7 +608,7 @@ bool IsKeyMapped(InputDeviceID device, int key) {
return false;
}
bool ReplaceSingleKeyMapping(int btn, int index, MultiInputMapping key) {
bool ReplaceSingleKeyMapping(int btn, int index, const MultiInputMapping &key) {
std::lock_guard<std::recursive_mutex> guard(g_controllerMapLock);
// Check for duplicate
for (int i = 0; i < (int)g_controllerMap[btn].size(); ++i) {