[GPU Common Vulkan/UI/Windows Debugger] Added const reference for function params

This commit is contained in:
Herman Semenov committed 2023-12-14 14:23:31 +03:00
1 parent af41281761
commit 3d422b11c0
15 files changed
+26 -26

No files matched your search

+3 -3
View File
@@ -69,7 +69,7 @@ private:
UI::EventReturn OnReplace(UI::EventParams &params);
UI::EventReturn OnReplaceAll(UI::EventParams &params);
void MappedCallback(MultiInputMapping key);
void MappedCallback(const MultiInputMapping &key);
enum Action {
NONE,
@@ -163,7 +163,7 @@ void SingleControlMapper::Refresh() {
}
}
void SingleControlMapper::MappedCallback(MultiInputMapping kdf) {
void SingleControlMapper::MappedCallback(const MultiInputMapping &kdf) {
if (kdf.empty()) {
// Don't want to try to add this.
return;
@@ -1192,7 +1192,7 @@ UI::EventReturn VisualMappingScreen::OnBindAll(UI::EventParams &e) {
return UI::EVENT_DONE;
}
void VisualMappingScreen::HandleKeyMapping(MultiInputMapping key) {
void VisualMappingScreen::HandleKeyMapping(const KeyMap::MultiInputMapping &key) {
KeyMap::SetInputMapping(nextKey_, key, replace_);
KeyMap::UpdateNativeMenuKeys();