Fix return type of ThemeParser::Commit() 90/236190/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Mon, 15 Jun 2020 11:12:09 +0000 (20:12 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 15 Jun 2020 11:13:48 +0000 (20:13 +0900)
Change-Id: Ic5a0f3969e53ed786a45855edfa42b10a230a077
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/theme_plugin/theme_parser.cc
src/theme_plugin/theme_parser.h

index 82e6ce0..403ee45 100644 (file)
@@ -47,7 +47,7 @@ loader::ThemeInfo ThemeParser::Inflate(const std::string id,
 
 using ttm::dbus::Command;
 using ttm::dbus::RequestBroker;
-int ThemeParser::Commit(ThemeOperation operation,
+bool ThemeParser::Commit(ThemeOperation operation,
   const loader::ThemeInfo& theme) {
   tizen_base::Bundle theme_info = theme.Serialize();
   tizen_base::Bundle reply;
@@ -65,9 +65,9 @@ int ThemeParser::Commit(ThemeOperation operation,
       reply = RequestBroker::GetInst().SendData(Command::REMOVE, theme_info);
       break;
     default:
-      return -1;
+      return false;
   }
-  return 0;
+  return true;
 }
 
 }  // namespace plugin
index b6b120b..0bfbacd 100644 (file)
@@ -26,7 +26,7 @@ class ThemeParser {
   explicit ThemeParser(const std::string& path) : path_(path) {}
   loader::ThemeInfo Inflate(const std::string id, const std::string pkgid,
       uid_t uid);
-  int Commit(ThemeOperation operation, const loader::ThemeInfo& theme);
+  bool Commit(ThemeOperation operation, const loader::ThemeInfo& theme);
 
  private:
   std::string path_;