diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2021-10-27 18:01:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-11-04 13:20:48 (GMT) |
commit | b86b6aaa4a27009af4e1457458cf35185be00dc5 (patch) | |
tree | d8410f37e0df5aeb59bad57a6ded0961b63f1721 /Source/CPack/cmCPackComponentGroup.h | |
parent | 6251239a1c0f0f8342813ff800c184ca2672935b (diff) | |
download | CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.zip CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.tar.gz CMake-b86b6aaa4a27009af4e1457458cf35185be00dc5.tar.bz2 |
Source: Cleanup and simplify some code
Diffstat (limited to 'Source/CPack/cmCPackComponentGroup.h')
-rw-r--r-- | Source/CPack/cmCPackComponentGroup.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/CPack/cmCPackComponentGroup.h b/Source/CPack/cmCPackComponentGroup.h index 58377d4..6a47b6d 100644 --- a/Source/CPack/cmCPackComponentGroup.h +++ b/Source/CPack/cmCPackComponentGroup.h @@ -35,12 +35,10 @@ class cmCPackComponent { public: cmCPackComponent() - : Group(nullptr) - , IsRequired(true) + : IsRequired(true) , IsHidden(false) , IsDisabledByDefault(false) , IsDownloaded(false) - , TotalSize(0) { } @@ -51,7 +49,7 @@ public: std::string DisplayName; /// The component group that contains this component (if any). - cmCPackComponentGroup* Group; + cmCPackComponentGroup* Group = nullptr; /// Whether this component group must always be installed. bool IsRequired : 1; @@ -103,7 +101,7 @@ public: unsigned long GetInstalledSizeInKbytes(const std::string& installDir) const; private: - mutable unsigned long TotalSize; + mutable unsigned long TotalSize = 0; }; /** \class cmCPackComponentGroup @@ -113,7 +111,8 @@ class cmCPackComponentGroup { public: cmCPackComponentGroup() - : ParentGroup(nullptr) + : IsBold(false) + , IsExpandedByDefault(false) { } @@ -136,7 +135,7 @@ public: std::vector<cmCPackComponent*> Components; /// The parent group of this component group (if any). - cmCPackComponentGroup* ParentGroup; + cmCPackComponentGroup* ParentGroup = nullptr; /// The subgroups of this group. std::vector<cmCPackComponentGroup*> Subgroups; |