From: Hwankyu Jhun Date: Thu, 25 Jul 2019 02:05:01 +0000 (+0900) Subject: Fix static anlaysis issues X-Git-Tag: submit/tizen/20190730.054929~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c07f167d18433a4d2f238e396e5f8b69b524a1b0;p=platform%2Fcore%2Fappfw%2Fcomponent-based-application.git Fix static anlaysis issues - Initializes private members Change-Id: Ia7fa839b030eb6a1a88da2c9376ce7cb40ef9aa6 Signed-off-by: Hwankyu Jhun --- 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_;