aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-03-18 11:32:49 -0400
committerLioncash <mathew1800@gmail.com>2019-03-18 11:40:38 -0400
commiteb335f51ca15774330219a9c65778db39cdebac1 (patch)
tree80b2280dbfadad42b685f7e9eda7ef8bd479b689 /src/input_common/sdl/sdl.h
parent874826b6ddef20f190013f24021d20e0338d5593 (diff)
input_common/sdl: Correct return values within implementations of GetPollers()
In both cases, we weren't actually returning anything, which is undefined behavior.
Diffstat (limited to 'src/input_common/sdl/sdl.h')
-rw-r--r--src/input_common/sdl/sdl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/input_common/sdl/sdl.h b/src/input_common/sdl/sdl.h
index 940ca7f1ba..d7f24c68a7 100644
--- a/src/input_common/sdl/sdl.h
+++ b/src/input_common/sdl/sdl.h
@@ -34,7 +34,9 @@ public:
class NullState : public State {
public:
- Pollers GetPollers(Polling::DeviceType type) override {}
+ Pollers GetPollers(Polling::DeviceType type) override {
+ return {};
+ }
};
std::unique_ptr<State> Init();