input_engine: Pass LedStatus by const reference
Avoids copies where reasonably applicable
This commit is contained in:
parent
f41c22d30f
commit
cd45635f56
3 changed files with 3 additions and 3 deletions
|
@ -668,7 +668,7 @@ public:
|
|||
explicit OutputFromIdentifier(PadIdentifier identifier_, InputEngine* input_engine_)
|
||||
: identifier(identifier_), input_engine(input_engine_) {}
|
||||
|
||||
virtual void SetLED(Common::Input::LedStatus led_status) {
|
||||
virtual void SetLED(const Common::Input::LedStatus& led_status) {
|
||||
input_engine->SetLeds(identifier, led_status);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue