diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-06 20:27:39 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-06 20:27:39 (GMT) |
commit | d63c1e4e6e8507cb1c8425d521cf61fa4adbf4a8 (patch) | |
tree | a10ebfd356b5592f2e8c39e9ce35701249ce6bd7 /Source/cmake.cxx | |
parent | ca8c3d64c8accebeacf322f0574494ffddb039c5 (diff) | |
download | CMake-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.cxx | 8 |
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) |