summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-02 09:52:09 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-02-02 09:52:35 (GMT)
commitf054201d12fa385f48abd967840c0d92595ca058 (patch)
tree157809b1d25028282f3c9c7f9d74520bef2ef6ac /Source/cmMakefile.h
parentd1ac6ffd4aa4cc54dbf4b0bf59045576af4c1033 (diff)
downloadCMake-f054201d12fa385f48abd967840c0d92595ca058.zip
CMake-f054201d12fa385f48abd967840c0d92595ca058.tar.gz
CMake-f054201d12fa385f48abd967840c0d92595ca058.tar.bz2
cmMakefile: Return containers by const reference.
They are not implicitly shared.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 66a33bb..45f3b9f 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -853,15 +853,15 @@ public:
/** Set whether or not to report a CMP0000 violation. */
void SetCheckCMP0000(bool b) { this->CheckCMP0000 = b; }
- std::vector<cmValueWithOrigin> GetIncludeDirectoriesEntries() const
+ const std::vector<cmValueWithOrigin>& GetIncludeDirectoriesEntries() const
{
return this->IncludeDirectoriesEntries;
}
- std::vector<cmValueWithOrigin> GetCompileOptionsEntries() const
+ const std::vector<cmValueWithOrigin>& GetCompileOptionsEntries() const
{
return this->CompileOptionsEntries;
}
- std::vector<cmValueWithOrigin> GetCompileDefinitionsEntries() const
+ const std::vector<cmValueWithOrigin>& GetCompileDefinitionsEntries() const
{
return this->CompileDefinitionsEntries;
}