summaryrefslogtreecommitdiffstats
path: root/Source/cmStateSnapshot.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-06 20:27:39 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-09-06 20:27:39 (GMT)
commitd63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8 (patch)
treea10ebfd356b5592f2e8c39e9ce35701249ce6bd7 /Source/cmStateSnapshot.cxx
parentca8c3d64c8accebeacf322f0574494ffddb039c5 (diff)
downloadCMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.zip
CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.tar.gz
CMake-d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8.tar.bz2
clang-tidy: modernize-return-braced-init-list
Diffstat (limited to 'Source/cmStateSnapshot.cxx')
-rw-r--r--Source/cmStateSnapshot.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmStateSnapshot.cxx b/Source/cmStateSnapshot.cxx
index 121923d..3c54f52 100644
--- a/Source/cmStateSnapshot.cxx
+++ b/Source/cmStateSnapshot.cxx
@@ -66,8 +66,7 @@ bool cmStateSnapshot::IsValid() const
cmStateSnapshot cmStateSnapshot::GetBuildsystemDirectory() const
{
- return cmStateSnapshot(this->State,
- this->Position->BuildSystemDirectory->DirectoryEnd);
+ return { this->State, this->Position->BuildSystemDirectory->DirectoryEnd };
}
cmStateSnapshot cmStateSnapshot::GetBuildsystemDirectoryParent() const
@@ -126,7 +125,7 @@ cmStateSnapshot cmStateSnapshot::GetCallStackBottom() const
pos != this->State->SnapshotData.Root()) {
++pos;
}
- return cmStateSnapshot(this->State, pos);
+ return { this->State, pos };
}
void cmStateSnapshot::PushPolicy(cmPolicies::PolicyMap const& entry, bool weak)
@@ -426,7 +425,7 @@ cmState* cmStateSnapshot::GetState() const
cmStateDirectory cmStateSnapshot::GetDirectory() const
{
- return cmStateDirectory(this->Position->BuildSystemDirectory, *this);
+ return { this->Position->BuildSystemDirectory, *this };
}
void cmStateSnapshot::SetProjectName(const std::string& name)