summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-11 18:38:29 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-11 18:38:29 (GMT)
commit62d654abaefae34ad5761c7036a057a2d65e5891 (patch)
tree24a201e5d171b7aaba5c6ca64b1e56c7ac8ee294 /Source/cmCacheManager.cxx
parentb2f845feee3fcff045affb501935f64cbbbdafd1 (diff)
downloadCMake-62d654abaefae34ad5761c7036a057a2d65e5891.zip
CMake-62d654abaefae34ad5761c7036a057a2d65e5891.tar.gz
CMake-62d654abaefae34ad5761c7036a057a2d65e5891.tar.bz2
Fix find and remove check for uninitialized entries
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 2b62fe2..4c31a52 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -318,8 +318,11 @@ bool cmCacheManager::SaveCache(const char* path)
CacheEntryType t = ce.m_Type;
if(t == cmCacheManager::UNINITIALIZED)
{
+ /*
+ // This should be added in, but is not for now.
cmSystemTools::Error("Cache entry \"", (*i).first.c_str(),
"\" is uninitialized");
+ */
}
else if(t != INTERNAL)
{
@@ -595,7 +598,7 @@ void cmCacheManager::CacheIterator::Begin()
bool cmCacheManager::CacheIterator::Find(const char* key)
{
m_Position = m_Container.m_Cache.find(key);
- return this->IsAtEnd();
+ return !this->IsAtEnd();
}
void cmCacheManager::CacheIterator::Next()