summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.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/cmTarget.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/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ac453e2..22114fd 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -402,14 +402,13 @@ void cmTarget::SetMakefile(cmMakefile* mf)
{
// Initialize the INCLUDE_DIRECTORIES property based on the current value
// of the same directory property:
- const std::vector<std::string> parentIncludes =
+ const cmStringRange parentIncludes =
this->Makefile->GetIncludeDirectoriesEntries();
- const std::vector<cmListFileBacktrace> parentIncludesBts =
+ const cmBacktraceRange parentIncludesBts =
this->Makefile->GetIncludeDirectoriesBacktraces();
- std::vector<cmListFileBacktrace>::const_iterator btIt =
- parentIncludesBts.begin();
- for (std::vector<std::string>::const_iterator it
+ cmBacktraceRange::const_iterator btIt = parentIncludesBts.begin();
+ for (cmStringRange::const_iterator it
= parentIncludes.begin();
it != parentIncludes.end(); ++it, ++btIt)
{
@@ -421,13 +420,13 @@ void cmTarget::SetMakefile(cmMakefile* mf)
this->SystemIncludeDirectories.insert(parentSystemIncludes.begin(),
parentSystemIncludes.end());
- const std::vector<std::string> parentOptions =
+ const cmStringRange parentOptions =
this->Makefile->GetCompileOptionsEntries();
- const std::vector<cmListFileBacktrace> parentOptionsBts =
+ const cmBacktraceRange parentOptionsBts =
this->Makefile->GetCompileOptionsBacktraces();
btIt = parentOptionsBts.begin();
- for (std::vector<std::string>::const_iterator it
+ for (cmStringRange::const_iterator it
= parentOptions.begin();
it != parentOptions.end(); ++it, ++btIt)
{