diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-15 14:10:24 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-15 14:10:24 (GMT) |
commit | 9d4f3a06864b3b5fe96073ddc256ef39ab24ddad (patch) | |
tree | e55df81497545d678b13be3c5ccdcd34ae62af5a /Source/cmMakefile.h | |
parent | c2f7a3c02730759d6bde6b6b50daa1f23cc5fe24 (diff) | |
download | CMake-9d4f3a06864b3b5fe96073ddc256ef39ab24ddad.zip CMake-9d4f3a06864b3b5fe96073ddc256ef39ab24ddad.tar.gz CMake-9d4f3a06864b3b5fe96073ddc256ef39ab24ddad.tar.bz2 |
STYLE: remove duplicate non-const accessors GetLocalGenerator(int) and
GetLocaGenerators(cmLocalGenerators) from cmGlobalGenerator(). Now there is
one const accessor which is even faster since it returns a reference
(instead of copying a vector)
-more const to ensure that this the returned local generators don't actually
get modified
-removed duplicated code in GetCTestCommand() and GetCPackCommand()
-added some const accessors
Alex
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index dfd3ff8..39ca4f8 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -418,6 +418,10 @@ public: * Get the list of targets */ cmTargets &GetTargets() { return this->Targets; } + /** + * Get the list of targets, const version + */ + const cmTargets &GetTargets() const { return this->Targets; } const cmTargets &GetImportedTargets() const { return this->ImportedTargets; } cmTarget* FindTarget(const char* name, bool useImportedTargets); |