From bc976b4773ebd086d5d4e72b95271d473825dce3 Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Tue, 10 Oct 2017 13:28:21 +0100 Subject: [PATCH] endpoint_state: const-qualify functions Signed-off-by: Duarte Nunes --- gms/endpoint_state.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gms/endpoint_state.hh b/gms/endpoint_state.hh index 90da49c399..a775040b6d 100644 --- a/gms/endpoint_state.hh +++ b/gms/endpoint_state.hh @@ -129,7 +129,7 @@ public: /** * @return System.nanoTime() when state was updated last time. */ - clk::time_point get_update_timestamp() { + clk::time_point get_update_timestamp() const { return _update_timestamp; } @@ -137,7 +137,7 @@ public: _update_timestamp = clk::now(); } - bool is_alive() { + bool is_alive() const { return _is_alive; } @@ -149,7 +149,7 @@ public: _is_alive = false; } - bool is_shutdown() { + bool is_shutdown() const { auto app_state = get_application_state(application_state::STATUS); if (!app_state) { return false;