diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-02 13:33:23 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-08-02 13:33:23 (GMT) |
commit | 32bfe66b5d261bfc6c9f43f045f56651b8f012ea (patch) | |
tree | eb909fc898dac331525878465ae201305c177686 /Source/cmCacheManager.h | |
parent | 8a0e3c103b67914c95536e82f1cb71c34c11b1ef (diff) | |
download | CMake-32bfe66b5d261bfc6c9f43f045f56651b8f012ea.zip CMake-32bfe66b5d261bfc6c9f43f045f56651b8f012ea.tar.gz CMake-32bfe66b5d261bfc6c9f43f045f56651b8f012ea.tar.bz2 |
BUG: Fix problem with uninitialized variables
Diffstat (limited to 'Source/cmCacheManager.h')
-rw-r--r-- | Source/cmCacheManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCacheManager.h b/Source/cmCacheManager.h index 6655997..8ad7d44 100644 --- a/Source/cmCacheManager.h +++ b/Source/cmCacheManager.h @@ -39,6 +39,9 @@ private: std::string m_Value; CacheEntryType m_Type; std::map<cmStdString,cmStdString> m_Properties; + bool m_Initialized; + CacheEntry() : m_Value(""), m_Type(UNINITIALIZED), m_Initialized(false) + {} }; public: @@ -59,6 +62,7 @@ public: const char* GetValue() const { return this->GetEntry().m_Value.c_str(); } void SetValue(const char*); CacheEntryType GetType() const { return this->GetEntry().m_Type; } + bool Initialized() { return this->GetEntry().m_Initialized; } cmCacheManager &m_Container; std::map<cmStdString, CacheEntry>::iterator m_Position; CacheIterator(cmCacheManager &cm) : m_Container(cm) { |