From 6af1419a280bb38fa642e1f6023b608562f22585 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 18 Jul 2018 12:51:03 +0200 Subject: [PATCH] [XBT] Config::get_name -> Make 'this' const This is not the return value that is const'ed, but just shows that this method does not change the object. --- include/xbt/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 8df3f1ee08..270ee125f4 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -278,7 +278,7 @@ public: T& get() { return value_; } T const& get() const { return value_; } - std::string get_name() { return name_; } + std::string get_name() const { return name_; } // Implicit conversion to the underlying type: operator T&() { return value_; } operator T const&() const{ return value_; } -- 2.20.1