summaryrefslogtreecommitdiff
path: root/Source/cmVariableWatch.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-21 23:17:54 +0100
committerRegina Pfeifer <regina@mailbox.org>2018-12-15 10:52:37 +0100
commitb2aa3aedeab09ad7b2c95353d2d3c3d867bcec53 (patch)
tree44678a6866dac777b571e84aed52d62d286654cf /Source/cmVariableWatch.h
parent32cb564bea57af007d03fa31d80a0177057fc901 (diff)
downloadcmake-b2aa3aedeab09ad7b2c95353d2d3c3d867bcec53.tar.gz
clang-tidy: Use default member initialization
Diffstat (limited to 'Source/cmVariableWatch.h')
-rw-r--r--Source/cmVariableWatch.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/cmVariableWatch.h b/Source/cmVariableWatch.h
index 27d1b12dfe..2f444edf6b 100644
--- a/Source/cmVariableWatch.h
+++ b/Source/cmVariableWatch.h
@@ -63,15 +63,10 @@ public:
protected:
struct Pair
{
- WatchMethod Method;
- void* ClientData;
- DeleteData DeleteDataCall;
- Pair()
- : Method(nullptr)
- , ClientData(nullptr)
- , DeleteDataCall(nullptr)
- {
- }
+ WatchMethod Method = nullptr;
+ void* ClientData = nullptr;
+ DeleteData DeleteDataCall = nullptr;
+ Pair() {}
~Pair()
{
if (this->DeleteDataCall && this->ClientData) {