clang-tidy: Enable readability-const-return-type check

Checks for functions with a const-qualified return type and
recommends removal of the const keyword. Such use of const is usually
superfluous, and can prevent valuable compiler optimizations. Does
not (yet) fix trailing return types.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ifff7541c95d7881d8c6407b20c906ec7eb13abf1
diff --git a/utils.hpp b/utils.hpp
index eb28e07..cd79fd5 100644
--- a/utils.hpp
+++ b/utils.hpp
@@ -52,8 +52,8 @@
      *  @return std::string  -  the D-Bus service name
      *
      */
-    const std::string getService(const std::string& path,
-                                 const std::string& interface) const;
+    std::string getService(const std::string& path,
+                           const std::string& interface) const;
 
     /** @brief Get All properties
      *
@@ -64,8 +64,8 @@
      *
      *  @throw sdbusplus::exception_t when it fails
      */
-    const PropertyMap getAllProperties(const std::string& objectPath,
-                                       const std::string& interface) const;
+    PropertyMap getAllProperties(const std::string& objectPath,
+                                 const std::string& interface) const;
 
     /** @brief Get property(type: variant)
      *
@@ -77,9 +77,9 @@
      *
      *  @throw sdbusplus::exception_t when it fails
      */
-    const PropertyValue getProperty(const std::string& objectPath,
-                                    const std::string& interface,
-                                    const std::string& propertyName) const;
+    PropertyValue getProperty(const std::string& objectPath,
+                              const std::string& interface,
+                              const std::string& propertyName) const;
 
     /** @brief Set D-Bus property
      *
@@ -102,8 +102,8 @@
      *
      *  @return std::vector<std::string> vector of subtree paths
      */
-    const std::vector<std::string> getSubTreePaths(
-        const std::string& objectPath, const std::string& interface);
+    std::vector<std::string> getSubTreePaths(
+        const std::string& objectPath, const std::string& interface) const;
 };
 
 } // namespace utils