Skip to content

Commit ebbe8dd

Browse files
committed
fixed uninitMemberVar selfcheck warnings with gui/test/resultstree/testresultstree.cpp
1 parent a55c616 commit ebbe8dd

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
protected:
450450

@@ -566,21 +566,21 @@ class ProjectFile : public QObject {
566566
* If this is false then only the Debug configuration
567567
* for the set platform is analyzed.
568568
*/
569-
bool mAnalyzeAllVsConfigs;
569+
bool mAnalyzeAllVsConfigs{}; // TODO: defaults to true if loading a GUI project via CLI
570570

571571
/** Check only a selected VS configuration */
572572
QStringList mVsConfigurations;
573573

574574
/** Check code in headers */
575-
bool mCheckHeaders;
575+
bool mCheckHeaders{true};
576576

577577
/** Check code in unused templates */
578-
bool mCheckUnusedTemplates;
578+
bool mCheckUnusedTemplates{true};
579579

580580
/**
581581
* @brief Enable inline suppression.
582582
*/
583-
bool mInlineSuppression;
583+
bool mInlineSuppression{true};
584584

585585
/**
586586
* @brief List of include directories used to search include files.
@@ -644,13 +644,13 @@ class ProjectFile : public QObject {
644644
QString mProjectName;
645645

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

649649
/** @brief Execute clang analyzer? */
650-
bool mClangAnalyzer;
650+
bool mClangAnalyzer{};
651651

652652
/** @brief Execute clang-tidy? */
653-
bool mClangTidy;
653+
bool mClangTidy{};
654654

655655
/**
656656
* @brief Tags
@@ -663,10 +663,10 @@ class ProjectFile : public QObject {
663663
std::map<std::size_t, QString> mWarningTags;
664664

665665
/** Max CTU depth */
666-
int mMaxCtuDepth;
666+
int mMaxCtuDepth{};
667667

668668
/** Max template instantiation recursion */
669-
int mMaxTemplateRecursion;
669+
int mMaxTemplateRecursion{};
670670

671671
QStringList mCheckUnknownFunctionReturn;
672672

0 commit comments

Comments
 (0)