Fix build error
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 14 Apr 2020 10:28:06 +0000 (19:28 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 25 May 2020 04:28:15 +0000 (13:28 +0900)
Change-Id: I25a9df6629a0a773e2cc235e6bc8826ccbe876ae
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/theme/loader/theme_info.cc

index 3923ebf..e993153 100644 (file)
  * limitations under the License.
  */
 
-#include <string>
-
 #include "theme/loader/theme_info.h"
 
+#include <string>
+
 namespace ttm {
 namespace loader {
 
@@ -49,24 +49,25 @@ std::string ThemeInfo::GetDescription() const {
   return description_;
 }
 
-std::string ThemeInfo::GetString(std::string& key) const {
+std::string ThemeInfo::GetString(const std::string& key) const {
   return id_;
 }
 
-std::vector<std::string> ThemeInfo::GetStringArray(std::string& key) const {
+std::vector<std::string> ThemeInfo::GetStringArray(
+    const std::string& key) const {
   std::vector<std::string> v;
   return v;
 }
 
-int ThemeInfo::GetInt(std::string& key) const {
+int ThemeInfo::GetInt(const std::string& key) const {
   return 0;
 }
 
-float ThemeInfo::GetFloat(std::string& key) const {
+float ThemeInfo::GetFloat(const std::string& key) const {
   return 1.0;
 }
 
-bool ThemeInfo::GetBool(std::string& key) const {
+bool ThemeInfo::GetBool(const std::string& key) const {
   return true;
 }