diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-09-03 21:43:19 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-10-13 12:32:16 -0700 |
| commit | 78bfd25964206a1f0a34170fdd90ca1a8ce242db (patch) | |
| tree | 93aeabec56ac75e8d88baeb6f78e27840d09dead /Source/Core/InputCommon/ControllerInterface/CoreDevice.h | |
| parent | 525e6b21943b09172043797535db6a2890c45805 (diff) | |
Fix all uninitialized variable warnings (C26495)
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/CoreDevice.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h index def895afa1..2840f43463 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h @@ -174,7 +174,7 @@ protected: void AddCombinedInput(std::string name, const std::pair<std::string, std::string>& inputs); private: - int m_id; + int m_id = 0; std::vector<Input*> m_inputs; std::vector<Output*> m_outputs; }; @@ -216,10 +216,10 @@ public: struct InputDetection { std::shared_ptr<Device> device; - Device::Input* input; + Device::Input* input = nullptr; Clock::time_point press_time; std::optional<Clock::time_point> release_time; - ControlState smoothness; + ControlState smoothness = 0; }; Device::Input* FindInput(std::string_view name, const Device* def_dev) const; |
