stringapi: Use strings for cache iterator values

This commit is contained in:
Ben Boeckel
2014-02-24 20:24:01 -05:00
committed by Brad King
parent 85fc9f26a7
commit 94fc63e2d5
5 changed files with 19 additions and 17 deletions
@@ -51,7 +51,7 @@ cmCursesCacheEntryComposite::cmCursesCacheEntryComposite(
{
case cmCacheManager::BOOL:
this->Entry = new cmCursesBoolWidget(this->EntryWidth, 1, 1, 1);
if (cmSystemTools::IsOn(it.GetValue()))
if (cmSystemTools::IsOn(it.GetValue().c_str()))
{
static_cast<cmCursesBoolWidget*>(this->Entry)->SetValueAsBool(true);
}
@@ -94,7 +94,8 @@ cmCursesCacheEntryComposite::cmCursesCacheEntryComposite(
}
break;
case cmCacheManager::UNINITIALIZED:
cmSystemTools::Error("Found an undefined variable: ", it.GetName());
cmSystemTools::Error("Found an undefined variable: ",
it.GetName().c_str());
break;
default:
// TODO : put warning message here