summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-18 08:52:09 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-22 18:25:48 (GMT)
commit8d336875b3cea99e5c458d3e299d8caf8bc84b75 (patch)
treef6f861a28e22c7bbe068b9004ac924be1ca4d842 /Source/cmGlobalGenerator.cxx
parent514a1dff5b532c94dca2f77ed6d8742f45c48ddc (diff)
downloadCMake-8d336875b3cea99e5c458d3e299d8caf8bc84b75.zip
CMake-8d336875b3cea99e5c458d3e299d8caf8bc84b75.tar.gz
CMake-8d336875b3cea99e5c458d3e299d8caf8bc84b75.tar.bz2
cmMakefile: Use Ranges for buildsystem property access.
Don't return vector copies.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 2c5ed4f..40a8586 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1417,9 +1417,9 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo()
{
cmMakefile *mf = this->LocalGenerators[i]->GetMakefile();
- const std::vector<std::string> noconfig_compile_definitions =
+ const cmStringRange noconfig_compile_definitions =
mf->GetCompileDefinitionsEntries();
- const std::vector<cmListFileBacktrace> noconfig_compile_definitions_bts =
+ const cmBacktraceRange noconfig_compile_definitions_bts =
mf->GetCompileDefinitionsBacktraces();
cmTargets& targets = mf->GetTargets();
@@ -1435,9 +1435,9 @@ void cmGlobalGenerator::FinalizeTargetCompileInfo()
continue;
}
- std::vector<cmListFileBacktrace>::const_iterator btIt
+ cmBacktraceRange::const_iterator btIt
= noconfig_compile_definitions_bts.begin();
- for (std::vector<std::string>::const_iterator it
+ for (cmStringRange::const_iterator it
= noconfig_compile_definitions.begin();
it != noconfig_compile_definitions.end(); ++it, ++btIt)
{