Fix find and remove check for uninitialized entries
This commit is contained in:
parent
b2f845feee
commit
62d654abae
@ -318,8 +318,11 @@ bool cmCacheManager::SaveCache(const char* path)
|
|||||||
CacheEntryType t = ce.m_Type;
|
CacheEntryType t = ce.m_Type;
|
||||||
if(t == cmCacheManager::UNINITIALIZED)
|
if(t == cmCacheManager::UNINITIALIZED)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
// This should be added in, but is not for now.
|
||||||
cmSystemTools::Error("Cache entry \"", (*i).first.c_str(),
|
cmSystemTools::Error("Cache entry \"", (*i).first.c_str(),
|
||||||
"\" is uninitialized");
|
"\" is uninitialized");
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
else if(t != INTERNAL)
|
else if(t != INTERNAL)
|
||||||
{
|
{
|
||||||
@ -595,7 +598,7 @@ void cmCacheManager::CacheIterator::Begin()
|
|||||||
bool cmCacheManager::CacheIterator::Find(const char* key)
|
bool cmCacheManager::CacheIterator::Find(const char* key)
|
||||||
{
|
{
|
||||||
m_Position = m_Container.m_Cache.find(key);
|
m_Position = m_Container.m_Cache.find(key);
|
||||||
return this->IsAtEnd();
|
return !this->IsAtEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmCacheManager::CacheIterator::Next()
|
void cmCacheManager::CacheIterator::Next()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user