summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-12 13:00:30 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-12 13:00:30 (GMT)
commit628625af7219dcb54765bbc62136b543502ecbec (patch)
treed320ac3cf43e17d1b977e1347a0b3cb9e59e310a /Source
parentc478520cabd9e0e930c37337a786d74834ba1130 (diff)
downloadCMake-628625af7219dcb54765bbc62136b543502ecbec.zip
CMake-628625af7219dcb54765bbc62136b543502ecbec.tar.gz
CMake-628625af7219dcb54765bbc62136b543502ecbec.tar.bz2
Simplify code. Since we access cache entry through the iterator, we do not need the cache manager any more
Diffstat (limited to 'Source')
-rw-r--r--Source/cmakewizard.cxx7
-rw-r--r--Source/cmakewizard.h3
2 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx
index 2144a41..7ff4842 100644
--- a/Source/cmakewizard.cxx
+++ b/Source/cmakewizard.cxx
@@ -24,8 +24,7 @@ cmakewizard::cmakewizard()
}
-void cmakewizard::AskUser(const char* key, cmCacheManager::CacheIterator& iter,
- cmCacheManager *cacheManager)
+void cmakewizard::AskUser(const char* key, cmCacheManager::CacheIterator& iter)
{
std::cout << "Variable Name: " << key << "\n";
const char* helpstring = iter.GetProperty("HELPSTRING");
@@ -118,7 +117,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
{
if(m_ShowAdvanced || !i.GetPropertyAsBool("ADVANCED"))
{
- this->AskUser(key.c_str(), i, cachem);
+ this->AskUser(key.c_str(), i);
asked = true;
}
}
@@ -127,7 +126,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
{
if(m_ShowAdvanced || !i.GetPropertyAsBool("ADVANCED"))
{
- this->AskUser(key.c_str(), i, cachem);
+ this->AskUser(key.c_str(), i);
asked = true;
}
}
diff --git a/Source/cmakewizard.h b/Source/cmakewizard.h
index 9b0b5eb..a8f98d5 100644
--- a/Source/cmakewizard.h
+++ b/Source/cmakewizard.h
@@ -31,8 +31,7 @@ public:
/**
* Prompt the User for a new value for key, the answer is put in entry.
*/
- virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter,
- cmCacheManager *cm);
+ virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter);
///! Show a message to wait for cmake to run.
virtual void ShowMessage(const char*);