summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-27 18:03:39 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-01-27 18:03:39 (GMT)
commitddb792daab4816b0fc01f672737835a072d7c5ee (patch)
treedbc2ce070e57e3b94dbc3ebd9a3c8f59d13217d5 /Source/cmCacheManager.h
parent5781842bc22dbda40430661599d25e289fc09ea0 (diff)
parentbde0dab15d6bdefeadd329a67dbe53812d9f3254 (diff)
downloadCMake-ddb792daab4816b0fc01f672737835a072d7c5ee.zip
CMake-ddb792daab4816b0fc01f672737835a072d7c5ee.tar.gz
CMake-ddb792daab4816b0fc01f672737835a072d7c5ee.tar.bz2
Merge topic 'constify'
bde0dab1 cmMakefile: Make ConfigureString const. bf1e1bf1 cmMakefile: Make FindSourceGroup const. 01d7ceda cmMakefile: Trivially constify some methods. 9073318f cmMakefile: Remove non-const version of method 9b05bc4f cmMakefile: Remove method declarations with no implementation. c6c0bd9d cmMakefile: Consify custom command API. d6d4eaac cmMakefile: Constify policies accessors. 2a6e56e0 cmCacheManager: Consify version accessors. 5cc9fb02 cmSourceGroup: Fix method name capitalization. fe8b0330 cmMakefile: Constify some cmSourceGroup related code. e68a3ead cmSourceFile: Use a const cmMakefile. b6292402 cmSourceFileLocation: Use a const cmMakefile. b33ea578 cmMakefile: Make GetProperty const.
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r--Source/cmCacheManager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h
index 4b8c07d..f487e8e 100644
--- a/Source/cmCacheManager.h
+++ b/Source/cmCacheManager.h
@@ -145,8 +145,10 @@ public:
const char* GetCacheValue(const char* key) const;
/** Get the version of CMake that wrote the cache. */
- unsigned int GetCacheMajorVersion() { return this->CacheMajorVersion; }
- unsigned int GetCacheMinorVersion() { return this->CacheMinorVersion; }
+ unsigned int GetCacheMajorVersion() const
+ { return this->CacheMajorVersion; }
+ unsigned int GetCacheMinorVersion() const
+ { return this->CacheMinorVersion; }
bool NeedCacheCompatibility(int major, int minor);
protected: