From f50ac3549d6a7f1199fa012e4b03f581bc8d305b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jun 2018 12:54:47 +0200 Subject: core, modules: modernize syntax only Use more C++17 features where this helps any. --- proto-mouse/ftnoir_protocol_mouse.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'proto-mouse/ftnoir_protocol_mouse.h') diff --git a/proto-mouse/ftnoir_protocol_mouse.h b/proto-mouse/ftnoir_protocol_mouse.h index 22e78b69..2b88ae1d 100644 --- a/proto-mouse/ftnoir_protocol_mouse.h +++ b/proto-mouse/ftnoir_protocol_mouse.h @@ -21,12 +21,12 @@ class mouse : public TR, public IProtocol Q_OBJECT public: - mouse(); + mouse() = default; module_status initialize() override { return status_ok(); } - void pose( const double *headpose) override; + void pose(const double* headpose) override; QString game_name() override; - int last_x, last_y; + int last_x = 0, last_y = 0; private: static int get_delta(int val, int prev); static int get_value(double val, double sensitivity, bool is_rotation); -- cgit v1.2.3