Coding style
[platform/core/appfw/wgt-backend.git] / src / wgt / step / configuration / step_parse.cc
index d2c9b0c..c15d8af 100644 (file)
@@ -39,6 +39,7 @@
 #include <set>
 #include <string>
 #include <vector>
+#include <utility>
 
 #include "wgt/wgt_backend_data.h"
 
@@ -77,7 +78,8 @@ void AppendWidgetMetadata(GList** metadatas,
     const std::vector<std::pair<std::string, std::string>> metadata) {
   GList* list = *metadatas;
   for (auto& meta : metadata) {
-    metadata_x* new_meta = static_cast<metadata_x*>(calloc(1, sizeof(metadata_x)));
+    metadata_x* new_meta =
+        static_cast<metadata_x*>(calloc(1, sizeof(metadata_x)));
     new_meta->key = strdup(meta.first.c_str());
     if (!meta.second.empty())
       new_meta->value = strdup(meta.second.c_str());
@@ -144,16 +146,7 @@ std::string StepParse::GetPackageVersion(
   std::string version = manifest_version.substr(0,
       manifest_version.find_first_not_of("1234567890."));
 
-  utils::VersionNumber version_number(version);
-
-  if (!version_number.IsValidTizenPackageVersion()) {
-    LOG(WARNING) << "Version number: " << manifest_version
-                 << " is not valid version number for tizen package. "
-                 << "Default value will be used.";
-    return kManifestVersion;
-  }
-
-  return version_number.ToString();
+  return version;
 }
 
 bool StepParse::FillInstallationInfo(manifest_x* manifest) {