Skip to content
Snippets Groups Projects
Commit 8bb39750 authored by Lioncash's avatar Lioncash
Browse files

input_common/input_mapping: Remove const from return value

Top-level const on a return by value can inhibit move semantics, and is
unnecessary.
parent 12e7d3b2
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ void MappingFactory::BeginMapping(Polling::InputType type) { ...@@ -19,7 +19,7 @@ void MappingFactory::BeginMapping(Polling::InputType type) {
second_axis = -1; second_axis = -1;
} }
[[nodiscard]] const Common::ParamPackage MappingFactory::GetNextInput() { Common::ParamPackage MappingFactory::GetNextInput() {
Common::ParamPackage input; Common::ParamPackage input;
input_queue.Pop(input); input_queue.Pop(input);
return input; return input;
......
...@@ -20,7 +20,7 @@ public: ...@@ -20,7 +20,7 @@ public:
void BeginMapping(Polling::InputType type); void BeginMapping(Polling::InputType type);
/// Returns an input event with mapping information from the input_queue /// Returns an input event with mapping information from the input_queue
[[nodiscard]] const Common::ParamPackage GetNextInput(); [[nodiscard]] Common::ParamPackage GetNextInput();
/** /**
* Registers mapping input data from the driver * Registers mapping input data from the driver
......
...@@ -394,7 +394,7 @@ void InputSubsystem::BeginMapping(Polling::InputType type) { ...@@ -394,7 +394,7 @@ void InputSubsystem::BeginMapping(Polling::InputType type) {
impl->mapping_factory->BeginMapping(type); impl->mapping_factory->BeginMapping(type);
} }
const Common::ParamPackage InputSubsystem::GetNextInput() const { Common::ParamPackage InputSubsystem::GetNextInput() const {
return impl->mapping_factory->GetNextInput(); return impl->mapping_factory->GetNextInput();
} }
......
...@@ -126,7 +126,7 @@ public: ...@@ -126,7 +126,7 @@ public:
void BeginMapping(Polling::InputType type); void BeginMapping(Polling::InputType type);
/// Returns an input event with mapping information. /// Returns an input event with mapping information.
[[nodiscard]] const Common::ParamPackage GetNextInput() const; [[nodiscard]] Common::ParamPackage GetNextInput() const;
/// Stop polling from all backends. /// Stop polling from all backends.
void StopMapping() const; void StopMapping() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment