diff options
author | hbina085 <hanif.ariffin.4326@gmail.com> | 2019-05-20 13:36:24 -0400 |
---|---|---|
committer | hbina085 <hanif.ariffin.4326@gmail.com> | 2019-05-21 02:16:30 -0400 |
commit | f78baa5f936cce8cff7359131a1e082cf6300c8b (patch) | |
tree | f21512c62f41260dfa1569f1b559cb21d71564b1 /platform/server | |
parent | 9643b2b6def9964a24d273e7611ebf5aeefcd4b5 (diff) |
added a const keyword for a methods that return constant literal...
Diffstat (limited to 'platform/server')
-rw-r--r-- | platform/server/os_server.cpp | 2 | ||||
-rw-r--r-- | platform/server/os_server.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/server/os_server.cpp b/platform/server/os_server.cpp index 53f2a65c8e..12e53054bc 100644 --- a/platform/server/os_server.cpp +++ b/platform/server/os_server.cpp @@ -190,7 +190,7 @@ bool OS_Server::can_draw() const { return false; //can never draw }; -String OS_Server::get_name() { +String OS_Server::get_name() const { return "Server"; } diff --git a/platform/server/os_server.h b/platform/server/os_server.h index 7441064790..e3488a693d 100644 --- a/platform/server/os_server.h +++ b/platform/server/os_server.h @@ -93,7 +93,7 @@ protected: virtual void set_main_loop(MainLoop *p_main_loop); public: - virtual String get_name(); + virtual String get_name() const; virtual void set_mouse_show(bool p_show); virtual void set_mouse_grab(bool p_grab); |