diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-08 21:11:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-22 18:25:45 (GMT) |
commit | d6239507b2f08bd1fee53c84af3998a14fa9819b (patch) | |
tree | c5f4e81fe9f2149498b27de03e5ab5f281bb1ce5 /Source/cmMakefile.cxx | |
parent | ef17bbefd7c504af65f2e6c52f5d7fa8e82d087e (diff) | |
download | CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.zip CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.tar.gz CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.tar.bz2 |
cmMakefile: Split accessors for compile definitions and origins.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index dc8d983..c705e7d 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -303,19 +303,15 @@ std::vector<cmValueWithOrigin> cmMakefile::GetCompileOptionsEntries() const return entries; } -std::vector<cmValueWithOrigin> cmMakefile::GetCompileDefinitionsEntries() const +std::vector<std::string> cmMakefile::GetCompileDefinitionsEntries() const { - std::vector<cmValueWithOrigin> entries; - entries.reserve(this->CompileDefinitionsEntries.size()); - std::vector<cmListFileBacktrace>::const_iterator btIt = - this->CompileDefinitionsEntryBacktraces.begin(); - for(std::vector<std::string>::const_iterator it = - this->CompileDefinitionsEntries.begin(); - it != this->CompileDefinitionsEntries.end(); ++it, ++btIt) - { - entries.push_back(cmValueWithOrigin(*it, *btIt)); - } - return entries; + return this->CompileDefinitionsEntries; +} + +std::vector<cmListFileBacktrace> +cmMakefile::GetCompileDefinitionsBacktraces() const +{ + return this->CompileDefinitionsEntryBacktraces; } //---------------------------------------------------------------------------- |