diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-02-25 01:24:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-08 18:05:39 (GMT) |
commit | 94fc63e2d5402bc4fa570a92e1f5fe6aba088392 (patch) | |
tree | 1d031c69fe143462a9dc581c8ace15862c89e7ee /Source/CursesDialog | |
parent | 85fc9f26a703f28b356c93d405446c39bba43846 (diff) | |
download | CMake-94fc63e2d5402bc4fa570a92e1f5fe6aba088392.zip CMake-94fc63e2d5402bc4fa570a92e1f5fe6aba088392.tar.gz CMake-94fc63e2d5402bc4fa570a92e1f5fe6aba088392.tar.bz2 |
stringapi: Use strings for cache iterator values
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/cmCursesCacheEntryComposite.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesCacheEntryComposite.cxx b/Source/CursesDialog/cmCursesCacheEntryComposite.cxx index 7929ce7..682f95f 100644 --- a/Source/CursesDialog/cmCursesCacheEntryComposite.cxx +++ b/Source/CursesDialog/cmCursesCacheEntryComposite.cxx @@ -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 |