summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkInformation.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-21 22:17:54 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2018-12-15 09:52:37 (GMT)
commitb2aa3aedeab09ad7b2c95353d2d3c3d867bcec53 (patch)
tree44678a6866dac777b571e84aed52d62d286654cf /Source/cmComputeLinkInformation.h
parent32cb564bea57af007d03fa31d80a0177057fc901 (diff)
downloadCMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.zip
CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.gz
CMake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.bz2
clang-tidy: Use default member initialization
Diffstat (limited to 'Source/cmComputeLinkInformation.h')
-rw-r--r--Source/cmComputeLinkInformation.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/cmComputeLinkInformation.h b/Source/cmComputeLinkInformation.h
index 202bebd..db7eb96 100644
--- a/Source/cmComputeLinkInformation.h
+++ b/Source/cmComputeLinkInformation.h
@@ -30,11 +30,7 @@ public:
struct Item
{
- Item()
- : IsPath(true)
- , Target(nullptr)
- {
- }
+ Item() {}
Item(std::string const& v, bool p,
cmGeneratorTarget const* target = nullptr)
: Value(v)
@@ -43,8 +39,8 @@ public:
{
}
std::string Value;
- bool IsPath;
- cmGeneratorTarget const* Target;
+ bool IsPath = true;
+ cmGeneratorTarget const* Target = nullptr;
};
typedef std::vector<Item> ItemVector;
ItemVector const& GetItems() const;