From 300041cc6e5a1dd418076f39c8738373b2e06f5e Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Wed, 13 Dec 2017 13:00:42 +0100 Subject: [PATCH] ios: Initialize members Change-Id: I01cbbbfa9e8906768cc71d1c5b0d366d99924c7f Reviewed-by: hjk --- src/plugins/ios/iosdevice.h | 2 +- src/plugins/ios/iostoolhandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/ios/iosdevice.h b/src/plugins/ios/iosdevice.h index e0b7b4024bd..32cf756fad2 100644 --- a/src/plugins/ios/iosdevice.h +++ b/src/plugins/ios/iosdevice.h @@ -78,7 +78,7 @@ protected: IosDevice(); IosDevice(const IosDevice &other); Dict m_extraInfo; - bool m_ignoreDevice; + bool m_ignoreDevice = false; mutable quint16 m_lastPort; }; diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp index 1e85d8fcbd4..905c8de9556 100644 --- a/src/plugins/ios/iostoolhandler.cpp +++ b/src/plugins/ios/iostoolhandler.cpp @@ -153,7 +153,7 @@ struct ParserState { QString key; QString value; QMap info; - int progress, maxProgress; + int progress = 0, maxProgress = 0; int gdbPort, qmlPort; bool collectChars() { switch (kind) { @@ -215,7 +215,7 @@ protected: IosToolHandler *q; QString m_deviceId; QString m_bundlePath; - IosToolHandler::RunKind m_runKind; + IosToolHandler::RunKind m_runKind = IosToolHandler::NormalRun; IosDeviceType m_devType; };