summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPICodemodel.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-01-02 10:23:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-02 10:23:32 (GMT)
commit47a907413bb8aa2394a3003c90775b402b53d35a (patch)
treea2f5486213f7f51b7efbb196cc7bff3d63b2ad00 /Source/cmFileAPICodemodel.cxx
parente16fb762b5ed8fef3b7b65573787a385c1ee098d (diff)
parent5444a8095da50cdf4306d33fe137baa7711f1781 (diff)
downloadCMake-47a907413bb8aa2394a3003c90775b402b53d35a.zip
CMake-47a907413bb8aa2394a3003c90775b402b53d35a.tar.gz
CMake-47a907413bb8aa2394a3003c90775b402b53d35a.tar.bz2
Merge topic 'modernize-memory-management'
5444a8095d cmGlobalGenerator: modernize memrory managemenbt Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4166
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r--Source/cmFileAPICodemodel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx
index 7a2d9d5..d13e8ec 100644
--- a/Source/cmFileAPICodemodel.cxx
+++ b/Source/cmFileAPICodemodel.cxx
@@ -427,7 +427,7 @@ Json::Value Codemodel::DumpConfigurations()
Json::Value configurations = Json::arrayValue;
cmGlobalGenerator* gg =
this->FileAPI.GetCMakeInstance()->GetGlobalGenerator();
- auto makefiles = gg->GetMakefiles();
+ const auto& makefiles = gg->GetMakefiles();
if (!makefiles.empty()) {
std::vector<std::string> const& configs =
makefiles[0]->GetGeneratorConfigs();