diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-12-29 11:36:48 +0100 |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-12-30 16:55:39 +0100 |
commit | 5444a8095da50cdf4306d33fe137baa7711f1781 (patch) | |
tree | c0ec64b08aa5fda9f7b8bb88f263ba5128a205da /Source/cmFileAPICodemodel.cxx | |
parent | 15526d4b1072647179290fb5c2d0a3a5275415c7 (diff) | |
download | cmake-5444a8095da50cdf4306d33fe137baa7711f1781.tar.gz |
cmGlobalGenerator: modernize memrory managemenbt
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r-- | Source/cmFileAPICodemodel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx index 7a2d9d5b4b..d13e8ec191 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(); |