diff options
| author | 2020-02-03 09:26:50 -0500 | |
|---|---|---|
| committer | 2020-02-03 09:26:53 -0500 | |
| commit | 83f8090273fbc8d499b08c6a53700c9a2c262d81 (patch) | |
| tree | a46b7b19308e2c258ebd38da3fe248de2beca627 /src/input_common/udp/udp.cpp | |
| parent | input_common/udp: std::move SocketCallback instances where applicable (diff) | |
| download | yuzu-83f8090273fbc8d499b08c6a53700c9a2c262d81.tar.gz yuzu-83f8090273fbc8d499b08c6a53700c9a2c262d81.tar.xz yuzu-83f8090273fbc8d499b08c6a53700c9a2c262d81.zip | |
input_common/udp: Add missing override specifiers
Prevents trivial warnings and ensures interfaces are properly
maintained between the base class.
Diffstat (limited to 'src/input_common/udp/udp.cpp')
| -rw-r--r-- | src/input_common/udp/udp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_common/udp/udp.cpp b/src/input_common/udp/udp.cpp index 49a747327..ca99cc22f 100644 --- a/src/input_common/udp/udp.cpp +++ b/src/input_common/udp/udp.cpp | |||
| @@ -16,7 +16,7 @@ namespace InputCommon::CemuhookUDP { | |||
| 16 | class UDPTouchDevice final : public Input::TouchDevice { | 16 | class UDPTouchDevice final : public Input::TouchDevice { |
| 17 | public: | 17 | public: |
| 18 | explicit UDPTouchDevice(std::shared_ptr<DeviceStatus> status_) : status(std::move(status_)) {} | 18 | explicit UDPTouchDevice(std::shared_ptr<DeviceStatus> status_) : status(std::move(status_)) {} |
| 19 | std::tuple<float, float, bool> GetStatus() const { | 19 | std::tuple<float, float, bool> GetStatus() const override { |
| 20 | std::lock_guard guard(status->update_mutex); | 20 | std::lock_guard guard(status->update_mutex); |
| 21 | return status->touch_status; | 21 | return status->touch_status; |
| 22 | } | 22 | } |
| @@ -28,7 +28,7 @@ private: | |||
| 28 | class UDPMotionDevice final : public Input::MotionDevice { | 28 | class UDPMotionDevice final : public Input::MotionDevice { |
| 29 | public: | 29 | public: |
| 30 | explicit UDPMotionDevice(std::shared_ptr<DeviceStatus> status_) : status(std::move(status_)) {} | 30 | explicit UDPMotionDevice(std::shared_ptr<DeviceStatus> status_) : status(std::move(status_)) {} |
| 31 | std::tuple<Common::Vec3<float>, Common::Vec3<float>> GetStatus() const { | 31 | std::tuple<Common::Vec3<float>, Common::Vec3<float>> GetStatus() const override { |
| 32 | std::lock_guard guard(status->update_mutex); | 32 | std::lock_guard guard(status->update_mutex); |
| 33 | return status->motion_status; | 33 | return status->motion_status; |
| 34 | } | 34 | } |