Simplify code. Since we access cache entry through the iterator, we do not need the cache manager any more
This commit is contained in:
parent
c478520cab
commit
628625af72
@ -24,8 +24,7 @@ cmakewizard::cmakewizard()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void cmakewizard::AskUser(const char* key, cmCacheManager::CacheIterator& iter,
|
void cmakewizard::AskUser(const char* key, cmCacheManager::CacheIterator& iter)
|
||||||
cmCacheManager *cacheManager)
|
|
||||||
{
|
{
|
||||||
std::cout << "Variable Name: " << key << "\n";
|
std::cout << "Variable Name: " << key << "\n";
|
||||||
const char* helpstring = iter.GetProperty("HELPSTRING");
|
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"))
|
if(m_ShowAdvanced || !i.GetPropertyAsBool("ADVANCED"))
|
||||||
{
|
{
|
||||||
this->AskUser(key.c_str(), i, cachem);
|
this->AskUser(key.c_str(), i);
|
||||||
asked = true;
|
asked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -127,7 +126,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
|
|||||||
{
|
{
|
||||||
if(m_ShowAdvanced || !i.GetPropertyAsBool("ADVANCED"))
|
if(m_ShowAdvanced || !i.GetPropertyAsBool("ADVANCED"))
|
||||||
{
|
{
|
||||||
this->AskUser(key.c_str(), i, cachem);
|
this->AskUser(key.c_str(), i);
|
||||||
asked = true;
|
asked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Prompt the User for a new value for key, the answer is put in entry.
|
* Prompt the User for a new value for key, the answer is put in entry.
|
||||||
*/
|
*/
|
||||||
virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter,
|
virtual void AskUser(const char* key, cmCacheManager::CacheIterator& iter);
|
||||||
cmCacheManager *cm);
|
|
||||||
///! Show a message to wait for cmake to run.
|
///! Show a message to wait for cmake to run.
|
||||||
virtual void ShowMessage(const char*);
|
virtual void ShowMessage(const char*);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user