diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-01 21:00:38 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-02 18:13:22 +0000 |
commit | f8ee1422db60190aaad63d967584b0ffc52e9fd8 (patch) | |
tree | 76e92fa4796eef5193b4581acc00053823101d26 /tests | |
parent | 2a88460ace25208b3774ab0e32df3fa9d20452ea (diff) |
Fix uninitialized variables
This fixes most of clang analyzer warnings about uninitialized variables
in ctors
Change-Id: I879c785594307ed3fe7140588338a6b2a1e4db65
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/blackbox/tst_blackboxbase.h | 4 | ||||
-rw-r--r-- | tests/benchmarker/commandlineparser.h | 2 | ||||
-rw-r--r-- | tests/fuzzy-test/commandlineparser.h | 6 | ||||
-rw-r--r-- | tests/fuzzy-test/fuzzytester.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/blackbox/tst_blackboxbase.h b/tests/auto/blackbox/tst_blackboxbase.h index e7df96f00..251f3752d 100644 --- a/tests/auto/blackbox/tst_blackboxbase.h +++ b/tests/auto/blackbox/tst_blackboxbase.h @@ -70,8 +70,8 @@ public: QString profile; QString settingsDir; QString workingDir; - bool expectFailure; - bool expectCrash; + bool expectFailure = false; + bool expectCrash = false; }; class TestBlackboxBase : public QObject diff --git a/tests/benchmarker/commandlineparser.h b/tests/benchmarker/commandlineparser.h index 2c87daeef..72a364561 100644 --- a/tests/benchmarker/commandlineparser.h +++ b/tests/benchmarker/commandlineparser.h @@ -58,7 +58,7 @@ private: QString m_newCommit; QString m_testProjectFilePath; QString m_qbsRepoDirPath; - int m_regressionThreshold; + int m_regressionThreshold = 0; }; } // namespace qbsBenchmarker diff --git a/tests/fuzzy-test/commandlineparser.h b/tests/fuzzy-test/commandlineparser.h index fa6098e59..54b80c7cb 100644 --- a/tests/fuzzy-test/commandlineparser.h +++ b/tests/fuzzy-test/commandlineparser.h @@ -68,9 +68,9 @@ private: QString m_command; QString m_profile; QString m_startCommit; - int m_maxDuration; - int m_jobCount; - bool m_log; + int m_maxDuration = 0; + int m_jobCount = 0; + bool m_log = false; }; #endif // Include guard. diff --git a/tests/fuzzy-test/fuzzytester.h b/tests/fuzzy-test/fuzzytester.h index 846e7d14f..2d75bb1af 100644 --- a/tests/fuzzy-test/fuzzytester.h +++ b/tests/fuzzy-test/fuzzytester.h @@ -71,8 +71,8 @@ private: static QString defaultBuildDir(); QString m_profile; - int m_jobCount; - bool m_log; + int m_jobCount = 0; + bool m_log = false; QString m_headCommit; QString m_currentCommit; QString m_currentActivity; |