Fix static anlaysis issues 95/210795/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 25 Jul 2019 02:05:01 +0000 (11:05 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 25 Jul 2019 02:05:01 +0000 (11:05 +0900)
- Initializes private members

Change-Id: Ia7fa839b030eb6a1a88da2c9376ce7cb40ef9aa6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
component_based/app_control/component_based_app_control.h
component_based/uri/component_based_uri.h

index 0e4c89b8f53f92534d0e988bc38773e797881c6f..1d3e08827b279e37749604c8f79ea5a71aa1a05b 100644 (file)
@@ -90,7 +90,7 @@ class EXPORT_API AppControl {
     Uri uri_;
     std::string mime_;
     std::map<std::string, std::string> extra_;
-    AppControl::LaunchMode mode_;
+    AppControl::LaunchMode mode_ = AppControl::LaunchMode::SINGLE;
     std::string comp_id_;
   };
 
index 063c396a50bc09a04ba9b116b53c931d4dce844f..8b6797f7ea3dae2b6eac3ee55b02539fb76c6fc8 100644 (file)
@@ -79,7 +79,7 @@ class EXPORT_API Uri {
   bool IsNumber(const std::string& s);
 
  private:
-  std::size_t idx_;
+  std::size_t idx_ = 0;
 
  private:
   std::string scheme_;