Fix static analysis issues
[platform/core/base/bundle.git] / src / bundle-internal.cc
index 8b50c7b..8088c60 100644 (file)
@@ -30,8 +30,6 @@ namespace internal {
 
 static const int CHECKSUM_LENGTH = 32;
 
-Bundle::Bundle() = default;
-
 Bundle::Bundle(unsigned char* raw, int size, bool base64) {
   int ret;
   if (base64)
@@ -48,8 +46,6 @@ Bundle::Bundle(int argc, char** argv) {
     THROW(ret);
 }
 
-Bundle::~Bundle() = default;
-
 Bundle::Bundle(const Bundle& b) {
   map_ = b.map_;
   list_ = b.list_;
@@ -121,7 +117,7 @@ void Bundle::Set(const std::string& key, int index,
   if (iter == map_.end())
     THROW(BUNDLE_ERROR_KEY_NOT_AVAILABLE);
 
-  int ret = iter->second->SetValue(index, std::move(value));
+  int ret = iter->second->SetValue(index, value);
   if (ret != BUNDLE_ERROR_NONE)
     THROW(ret);
 }
@@ -286,7 +282,7 @@ std::vector<std::string> Bundle::Export() {
 
     std::unique_ptr<gchar, decltype(g_free)*> base64_bytes_ptr(base64_bytes,
         g_free);
-    argv.push_back(std::move(base64_bytes));
+    argv.push_back(base64_bytes);
   }
 
   return argv;