BUG: Fix uninitialzed members of cmCacheManager.

This commit is contained in:
Brad King 2008-01-29 17:30:48 -05:00
parent 6066e92ba2
commit 44cf465ff5
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,12 @@ const char* cmCacheManagerTypes[] =
0
};
cmCacheManager::cmCacheManager()
{
this->CacheMajorVersion = 0;
this->CacheMinorVersion = 0;
}
const char* cmCacheManager::TypeToString(cmCacheManager::CacheEntryType type)
{
if ( type > 6 )

View File

@ -30,6 +30,7 @@ class cmMarkAsAdvancedCommand;
class cmCacheManager
{
public:
cmCacheManager();
class CacheIterator;
friend class cmCacheManager::CacheIterator;
enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,