diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-18 08:52:09 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-22 18:25:48 (GMT) |
commit | 8d336875b3cea99e5c458d3e299d8caf8bc84b75 (patch) | |
tree | f6f861a28e22c7bbe068b9004ac924be1ca4d842 /Source/cmMakefile.cxx | |
parent | 514a1dff5b532c94dca2f77ed6d8742f45c48ddc (diff) | |
download | CMake-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/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 58d9d73..81c8831 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -273,38 +273,34 @@ void cmMakefile::IssueMessage(cmake::MessageType t, } } -std::vector<std::string> cmMakefile::GetIncludeDirectoriesEntries() const +cmStringRange cmMakefile::GetIncludeDirectoriesEntries() const { - return this->IncludeDirectoriesEntries; + return cmMakeRange(this->IncludeDirectoriesEntries); } -std::vector<cmListFileBacktrace> -cmMakefile::GetIncludeDirectoriesBacktraces() const +cmBacktraceRange cmMakefile::GetIncludeDirectoriesBacktraces() const { - return this->IncludeDirectoriesEntryBacktraces; + return cmMakeRange(this->IncludeDirectoriesEntryBacktraces); } - -std::vector<std::string> cmMakefile::GetCompileOptionsEntries() const +cmStringRange cmMakefile::GetCompileOptionsEntries() const { - return this->CompileOptionsEntries; + return cmMakeRange(this->CompileOptionsEntries); } -std::vector<cmListFileBacktrace> -cmMakefile::GetCompileOptionsBacktraces() const +cmBacktraceRange cmMakefile::GetCompileOptionsBacktraces() const { - return this->CompileOptionsEntryBacktraces; + return cmMakeRange(this->CompileOptionsEntryBacktraces); } -std::vector<std::string> cmMakefile::GetCompileDefinitionsEntries() const +cmStringRange cmMakefile::GetCompileDefinitionsEntries() const { - return this->CompileDefinitionsEntries; + return cmMakeRange(this->CompileDefinitionsEntries); } -std::vector<cmListFileBacktrace> -cmMakefile::GetCompileDefinitionsBacktraces() const +cmBacktraceRange cmMakefile::GetCompileDefinitionsBacktraces() const { - return this->CompileDefinitionsEntryBacktraces; + return cmMakeRange(this->CompileDefinitionsEntryBacktraces); } //---------------------------------------------------------------------------- |