summaryrefslogtreecommitdiffstats
path: root/Source/cmake.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/cmake.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/cmake.cxx')
-rw-r--r--Source/cmake.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index ace9198..e7c714e 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1081,20 +1081,18 @@ createExtraGenerator(
const std::vector<std::string> generators =
i->GetSupportedGlobalGenerators();
if (i->GetName() == name) { // Match aliases
- return std::make_pair(i->CreateExternalMakefileProjectGenerator(),
- generators.at(0));
+ return { i->CreateExternalMakefileProjectGenerator(), generators.at(0) };
}
for (std::string const& g : generators) {
const std::string fullName =
cmExternalMakefileProjectGenerator::CreateFullGeneratorName(
g, i->GetName());
if (fullName == name) {
- return std::make_pair(i->CreateExternalMakefileProjectGenerator(), g);
+ return { i->CreateExternalMakefileProjectGenerator(), g };
}
}
}
- return std::make_pair(
- static_cast<cmExternalMakefileProjectGenerator*>(nullptr), name);
+ return { nullptr, name };
}
cmGlobalGenerator* cmake::CreateGlobalGenerator(const std::string& gname)