Fix style 62/69762/2
authorTomasz Iwanek <t.iwanek@samsung.com>
Mon, 16 May 2016 14:07:24 +0000 (16:07 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Tue, 17 May 2016 14:04:11 +0000 (07:04 -0700)
Change-Id: I59a00a194561d25172a96c8f60314d01a5b08936

src/unit_tests/manifest_test.cc
src/wgt/step/common/privileges.cc
src/wgt/step/pkgmgr/step_generate_xml.cc
src/wgt/step/rds/step_wgt_rds_modify.h
src/wgt/step/security/step_check_wgt_ime_privilege.cc

index b72a9bd..ab26141 100644 (file)
@@ -593,5 +593,4 @@ TEST_F(ManifestTest, CategoryElement_MultipleElements) {
                  "http://tizen.org/category/category_1");
   ASSERT_CSTR_EQ(categories[2].c_str(),
                  "http://tizen.org/category/category_2");
-
 }
index 5634f90..20b5cc3 100644 (file)
@@ -1,7 +1,8 @@
 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
 // Use of this source code is governed by a apache 2.0 license that can be
 // found in the LICENSE file.
-#include "privileges.h"
+
+#include "wgt/step/common/privileges.h"
 
 namespace wgt {
 namespace common {
index 43c96ee..614009e 100644 (file)
@@ -429,11 +429,14 @@ common_installer::Step::Status StepGenerateXml::process() {
   if (!ime_uuid.empty()) {
     xmlTextWriterStartElement(writer, BAD_CAST "ime");
 
-    GListRange<application_x *> app_range(context_->manifest_data.get()->application);
+    GListRange<application_x*> app_range(
+        context_->manifest_data.get()->application);
     if (!app_range.Empty()) {
       // wgt app have ui-application as first application element.
       // there may be service-applications but not as first element.
-      xmlTextWriterWriteAttribute(writer, BAD_CAST "appid", BAD_CAST (*app_range.begin())->appid);
+      application_x* app = *app_range.begin();
+      xmlTextWriterWriteAttribute(writer, BAD_CAST "appid",
+                                  BAD_CAST app->appid);
     }
 
     xmlTextWriterStartElement(writer, BAD_CAST "uuid");
index f09347d..67f9d28 100644 (file)
@@ -33,7 +33,7 @@ class StepWgtRDSModify : public common_installer::rds::StepRDSModify {
   std::string GetAppPath() override;
 };
 
-}  // rds
-}  // wgt
+}  // namespace rds
+}  // namespace wgt
 
 #endif  // WGT_STEP_RDS_STEP_WGT_RDS_MODIFY_H_
index a791bfc..034f0cf 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <common/utils/glist_range.h>
 
+#include <string>
+
 namespace {
 const char kImeCategoryName[] = "http://tizen.org/category/ime";
 }