diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-03-06 11:18:58 -0500 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-03-06 11:18:58 -0500 |
commit | 6631d787541c9cf72821ad033a6f42356cf9f2e6 (patch) | |
tree | 4cbe0ddbc5267eaeb98f1b52a8b3cb56c290d7eb /Source/cmCacheManager.h | |
parent | 98d10a42d3a07b33d0d120e549e0ab9822d3d91c (diff) | |
download | cmake-6631d787541c9cf72821ad033a6f42356cf9f2e6.tar.gz |
Cache manager should be able to take no arguments
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r-- | Source/cmCacheManager.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index 6ead9227d8..3dbaa584b3 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -64,8 +64,12 @@ public: CacheIterator(cmCacheManager &cm) : m_Container(cm) { this->Begin(); } - CacheIterator(cmCacheManager &cm, const char* key) : m_Container(cm) { - this->Find(key); + CacheIterator(cmCacheManager &cm, const char* key) : m_Container(cm) + { + if ( key ) + { + this->Find(key); + } } private: CacheEntry const& GetEntry() const { return m_Position->second; } @@ -105,7 +109,7 @@ public: void PrintCache(std::ostream&) const; ///! Get the iterator for an entry with a given key. - cmCacheManager::CacheIterator GetCacheIterator(const char *key); + cmCacheManager::CacheIterator GetCacheIterator(const char *key=0); ///! Remove an entry from the cache void RemoveCacheEntry(const char* key); |