summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioSlnParser.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-11-22 18:37:59 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-11-29 17:39:29 (GMT)
commitf8a2926986de51ce99948cf160e882e57bf5f384 (patch)
treeaa325c04415235fcc913579b8b578c68463a67a8 /Source/cmVisualStudioSlnParser.cxx
parent63453bf4ef6aea31f072c559dda656fbd845ab41 (diff)
downloadCMake-f8a2926986de51ce99948cf160e882e57bf5f384.zip
CMake-f8a2926986de51ce99948cf160e882e57bf5f384.tar.gz
CMake-f8a2926986de51ce99948cf160e882e57bf5f384.tar.bz2
clang-tidy: fix `modernize-use-default-member-init` lints
Diffstat (limited to 'Source/cmVisualStudioSlnParser.cxx')
-rw-r--r--Source/cmVisualStudioSlnParser.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmVisualStudioSlnParser.cxx b/Source/cmVisualStudioSlnParser.cxx
index feab895..479e3ec 100644
--- a/Source/cmVisualStudioSlnParser.cxx
+++ b/Source/cmVisualStudioSlnParser.cxx
@@ -140,14 +140,13 @@ private:
std::stack<FileState> Stack;
std::string EndIgnoreTag;
DataGroupSet RequestedData;
- size_t CurrentLine;
+ size_t CurrentLine = 0;
void IgnoreUntilTag(const std::string& endTag);
};
cmVisualStudioSlnParser::State::State(DataGroupSet requestedData)
: RequestedData(requestedData)
- , CurrentLine(0)
{
if (this->RequestedData.test(DataGroupProjectDependenciesBit))
this->RequestedData.set(DataGroupProjectsBit);
@@ -386,8 +385,6 @@ void cmVisualStudioSlnParser::State::IgnoreUntilTag(const std::string& endTag)
}
cmVisualStudioSlnParser::ResultData::ResultData()
- : Result(ResultOK)
- , ResultLine(0)
{
}