summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2022-01-24 11:39:17 -0500
committerGravatar Lioncash2022-01-24 11:39:20 -0500
commit8bb39750a1f0ebe9b9a30b58188198123e69598a (patch)
tree74bbbb1e88eb45e9a76b742b535909b45c318996
parentinput_common/input_mapping: Default constructor (diff)
downloadyuzu-8bb39750a1f0ebe9b9a30b58188198123e69598a.tar.gz
yuzu-8bb39750a1f0ebe9b9a30b58188198123e69598a.tar.xz
yuzu-8bb39750a1f0ebe9b9a30b58188198123e69598a.zip
input_common/input_mapping: Remove const from return value
Top-level const on a return by value can inhibit move semantics, and is unnecessary.
Diffstat (limited to '')
-rw-r--r--src/input_common/input_mapping.cpp2
-rw-r--r--src/input_common/input_mapping.h2
-rw-r--r--src/input_common/main.cpp2
-rw-r--r--src/input_common/main.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/input_common/input_mapping.cpp b/src/input_common/input_mapping.cpp
index 38bf47575..263c24771 100644
--- a/src/input_common/input_mapping.cpp
+++ b/src/input_common/input_mapping.cpp
@@ -19,7 +19,7 @@ void MappingFactory::BeginMapping(Polling::InputType type) {
19 second_axis = -1; 19 second_axis = -1;
20} 20}
21 21
22[[nodiscard]] const Common::ParamPackage MappingFactory::GetNextInput() { 22Common::ParamPackage MappingFactory::GetNextInput() {
23 Common::ParamPackage input; 23 Common::ParamPackage input;
24 input_queue.Pop(input); 24 input_queue.Pop(input);
25 return input; 25 return input;
diff --git a/src/input_common/input_mapping.h b/src/input_common/input_mapping.h
index 93564b5f8..aac9aee64 100644
--- a/src/input_common/input_mapping.h
+++ b/src/input_common/input_mapping.h
@@ -20,7 +20,7 @@ public:
20 void BeginMapping(Polling::InputType type); 20 void BeginMapping(Polling::InputType type);
21 21
22 /// Returns an input event with mapping information from the input_queue 22 /// Returns an input event with mapping information from the input_queue
23 [[nodiscard]] const Common::ParamPackage GetNextInput(); 23 [[nodiscard]] Common::ParamPackage GetNextInput();
24 24
25 /** 25 /**
26 * Registers mapping input data from the driver 26 * Registers mapping input data from the driver
diff --git a/src/input_common/main.cpp b/src/input_common/main.cpp
index e2b415bf6..a4d7ed645 100644
--- a/src/input_common/main.cpp
+++ b/src/input_common/main.cpp
@@ -394,7 +394,7 @@ void InputSubsystem::BeginMapping(Polling::InputType type) {
394 impl->mapping_factory->BeginMapping(type); 394 impl->mapping_factory->BeginMapping(type);
395} 395}
396 396
397const Common::ParamPackage InputSubsystem::GetNextInput() const { 397Common::ParamPackage InputSubsystem::GetNextInput() const {
398 return impl->mapping_factory->GetNextInput(); 398 return impl->mapping_factory->GetNextInput();
399} 399}
400 400
diff --git a/src/input_common/main.h b/src/input_common/main.h
index c6f97f691..baf107e0f 100644
--- a/src/input_common/main.h
+++ b/src/input_common/main.h
@@ -126,7 +126,7 @@ public:
126 void BeginMapping(Polling::InputType type); 126 void BeginMapping(Polling::InputType type);
127 127
128 /// Returns an input event with mapping information. 128 /// Returns an input event with mapping information.
129 [[nodiscard]] const Common::ParamPackage GetNextInput() const; 129 [[nodiscard]] Common::ParamPackage GetNextInput() const;
130 130
131 /// Stop polling from all backends. 131 /// Stop polling from all backends.
132 void StopMapping() const; 132 void StopMapping() const;