From 9e91ae80e9dc95869eeeaa1428479bf8f052bbc8 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Sun, 17 Apr 2016 13:12:22 +0200 Subject: [PATCH] rgw: improve const-correctness of KeystoneToken class. Signed-off-by: Radoslaw Zarzynski --- src/rgw/rgw_keystone.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/rgw/rgw_keystone.h b/src/rgw/rgw_keystone.h index 811261842b013..1bd68f21a2398 100644 --- a/src/rgw/rgw_keystone.h +++ b/src/rgw/rgw_keystone.h @@ -75,13 +75,13 @@ public: public: // FIXME: default ctor needs to be eradicated here KeystoneToken() = default; - time_t get_expires() { return token.expires; } - string get_domain_id() {return project.domain.id;}; - string get_domain_name() {return project.domain.name;}; - string get_project_id() {return project.id;}; - string get_project_name() {return project.name;}; - string get_user_id() {return user.id;}; - string get_user_name() {return user.name;}; + time_t get_expires() const { return token.expires; } + string get_domain_id() const {return project.domain.id;}; + string get_domain_name() const {return project.domain.name;}; + string get_project_id() const {return project.id;}; + string get_project_name() const {return project.name;}; + string get_user_id() const {return user.id;}; + string get_user_name() const {return user.name;}; bool has_role(const string& r) const; bool expired() { uint64_t now = ceph_clock_now(NULL).sec(); -- 2.39.5