From c07f167d18433a4d2f238e396e5f8b69b524a1b0 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 25 Jul 2019 11:05:01 +0900 Subject: [PATCH] Fix static anlaysis issues - Initializes private members Change-Id: Ia7fa839b030eb6a1a88da2c9376ce7cb40ef9aa6 Signed-off-by: Hwankyu Jhun --- component_based/app_control/component_based_app_control.h | 2 +- component_based/uri/component_based_uri.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/component_based/app_control/component_based_app_control.h b/component_based/app_control/component_based_app_control.h index 0e4c89b..1d3e088 100644 --- a/component_based/app_control/component_based_app_control.h +++ b/component_based/app_control/component_based_app_control.h @@ -90,7 +90,7 @@ class EXPORT_API AppControl { Uri uri_; std::string mime_; std::map extra_; - AppControl::LaunchMode mode_; + AppControl::LaunchMode mode_ = AppControl::LaunchMode::SINGLE; std::string comp_id_; }; diff --git a/component_based/uri/component_based_uri.h b/component_based/uri/component_based_uri.h index 063c396..8b6797f 100644 --- a/component_based/uri/component_based_uri.h +++ b/component_based/uri/component_based_uri.h @@ -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_; -- 2.34.1