From 982efb186404c35ac954ac5e14a83231ade8f13c Mon Sep 17 00:00:00 2001 From: Tobias Mansfield-Williams Date: Sat, 25 Apr 2020 13:25:00 +0200 Subject: [PATCH] Add const to InputEventMouseButton::get_factor --- core/input/input_event.cpp | 2 +- core/input/input_event.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/input/input_event.cpp b/core/input/input_event.cpp index 80219331c08..d18adb1983f 100644 --- a/core/input/input_event.cpp +++ b/core/input/input_event.cpp @@ -477,7 +477,7 @@ void InputEventMouseButton::set_factor(float p_factor) { factor = p_factor; } -float InputEventMouseButton::get_factor() { +float InputEventMouseButton::get_factor() const { return factor; } diff --git a/core/input/input_event.h b/core/input/input_event.h index 2fdcdd0319d..8774b3b1dbf 100644 --- a/core/input/input_event.h +++ b/core/input/input_event.h @@ -349,7 +349,7 @@ protected: public: void set_factor(float p_factor); - float get_factor(); + float get_factor() const; void set_button_index(int p_index); int get_button_index() const;