Skip to content

Commit 7ea8dd9

Browse files
committed
fixed uninitMemberVar selfcheck warnings with gui/test/resultstree/testresultstree.cpp
1 parent bf61f4c commit 7ea8dd9

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

gui/projectfile.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ class ProjectFile : public QObject {
444444
*/
445445

446446
/** Use Clang parser */
447-
bool clangParser;
447+
bool clangParser{false};
448448

449449
/** Get paths where we should glob for certain files (dir="cfg"/"platforms"/etc */
450450
QStringList getSearchPaths(const QString& dir) const;
@@ -570,21 +570,21 @@ class ProjectFile : public QObject {
570570
* If this is false then only the Debug configuration
571571
* for the set platform is analyzed.
572572
*/
573-
bool mAnalyzeAllVsConfigs;
573+
bool mAnalyzeAllVsConfigs{}; // TODO: defaults to true if loading a GUI project via CLI
574574

575575
/** Check only a selected VS configuration */
576576
QStringList mVsConfigurations;
577577

578578
/** Check code in headers */
579-
bool mCheckHeaders;
579+
bool mCheckHeaders{true};
580580

581581
/** Check code in unused templates */
582-
bool mCheckUnusedTemplates;
582+
bool mCheckUnusedTemplates{true};
583583

584584
/**
585585
* @brief Enable inline suppression.
586586
*/
587-
bool mInlineSuppression;
587+
bool mInlineSuppression{true};
588588

589589
/**
590590
* @brief List of include directories used to search include files.
@@ -648,13 +648,13 @@ class ProjectFile : public QObject {
648648
QString mProjectName;
649649

650650
/** @brief Cppcheck Premium: This value is passed to the Cert C checker if that is enabled */
651-
int mCertIntPrecision;
651+
int mCertIntPrecision{};
652652

653653
/** @brief Execute clang analyzer? */
654-
bool mClangAnalyzer;
654+
bool mClangAnalyzer{};
655655

656656
/** @brief Execute clang-tidy? */
657-
bool mClangTidy;
657+
bool mClangTidy{};
658658

659659
/**
660660
* @brief Tags
@@ -667,10 +667,10 @@ class ProjectFile : public QObject {
667667
std::map<std::size_t, QString> mWarningTags;
668668

669669
/** Max CTU depth */
670-
int mMaxCtuDepth;
670+
int mMaxCtuDepth{};
671671

672672
/** Max template instantiation recursion */
673-
int mMaxTemplateRecursion;
673+
int mMaxTemplateRecursion{};
674674

675675
QStringList mCheckUnknownFunctionReturn;
676676

0 commit comments

Comments
 (0)