summaryrefslogtreecommitdiff
path: root/Source/cmConfigureFileCommand.h
diff options
context:
space:
mode:
authorjrp2014 <jrp2014@users.noreply.github.com>2018-04-03 22:18:48 +0100
committerBrad King <brad.king@kitware.com>2018-04-05 13:42:48 -0400
commitb0676cc5d48a5e7b79e8c95545b464b67248d96e (patch)
tree92da25087976acdfc872cb949338ec894c3bfb0e /Source/cmConfigureFileCommand.h
parent966dba5b683149e8c42d35a89cd60d593e542593 (diff)
downloadcmake-b0676cc5d48a5e7b79e8c95545b464b67248d96e.tar.gz
Add in-class initialization of some members
Several class constructors leave members uninitialized. The members are initialized before use in methods, but it is clearer and less error-prone to initialize them at their definition site.
Diffstat (limited to 'Source/cmConfigureFileCommand.h')
-rw-r--r--Source/cmConfigureFileCommand.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmConfigureFileCommand.h b/Source/cmConfigureFileCommand.h
index cff934b481..5603c505ca 100644
--- a/Source/cmConfigureFileCommand.h
+++ b/Source/cmConfigureFileCommand.h
@@ -32,9 +32,9 @@ private:
std::string InputFile;
std::string OutputFile;
- bool CopyOnly;
- bool EscapeQuotes;
- bool AtOnly;
+ bool CopyOnly = false;
+ bool EscapeQuotes = false;
+ bool AtOnly = false;
};
#endif