diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-12-13 09:20:55 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-12-13 09:20:58 -0500 |
| commit | cd45635f563460541af925ba4a566d6f95dc0989 (patch) | |
| tree | 6474358820f1029658ff76beca5454e1da322d2a /src/common/input.h | |
| parent | f41c22d30f016d5599ea1fde9eceb43cab6d6be0 (diff) | |
input_engine: Pass LedStatus by const reference
Avoids copies where reasonably applicable
Diffstat (limited to 'src/common/input.h')
| -rw-r--r-- | src/common/input.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/input.h b/src/common/input.h index 12d5d976fa..0b92449bc4 100644 --- a/src/common/input.h +++ b/src/common/input.h @@ -266,7 +266,7 @@ class OutputDevice { public: virtual ~OutputDevice() = default; - virtual void SetLED([[maybe_unused]] LedStatus led_status) {} + virtual void SetLED([[maybe_unused]] const LedStatus& led_status) {} virtual VibrationError SetVibration([[maybe_unused]] const VibrationStatus& vibration_status) { return VibrationError::NotSupported; |
