diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-25 18:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-03-25 18:46:52 (GMT) |
commit | a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e (patch) | |
tree | 91964f0266720537aae09ce0f42b8daa2107dba2 /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | ea54f8d44199502d6d02369ea0a2de4e9ef8c1ca (diff) | |
download | CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.zip CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.tar.gz CMake-a7f2ff16a48486ec0ef5a1a2d73e13cf4106a50e.tar.bz2 |
cmState::GetCacheEntryProperty: return cmProp
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 9670595..7752a68 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -407,9 +407,10 @@ void cmCursesMainForm::UpdateStatusBar(cm::optional<std::string> message) auto cmakeState = this->CMakeInstance->GetState(); cmProp existingValue = cmakeState->GetCacheEntryValue(labelValue); if (existingValue) { - auto help = cmakeState->GetCacheEntryProperty(labelValue, "HELPSTRING"); + cmProp help = + cmakeState->GetCacheEntryProperty(labelValue, "HELPSTRING"); if (help) { - bar += help; + bar += *help; } } } @@ -802,7 +803,7 @@ void cmCursesMainForm::HandleInput() cmCursesWidget* lbl = reinterpret_cast<cmCursesWidget*>( field_userptr(this->Fields[findex - 2])); const char* curField = lbl->GetValue(); - const char* helpString = nullptr; + cmProp helpString = nullptr; cmProp existingValue = this->CMakeInstance->GetState()->GetCacheEntryValue(curField); @@ -813,7 +814,7 @@ void cmCursesMainForm::HandleInput() if (helpString) { this->HelpMessage[1] = cmStrCat("Current option is: ", curField, '\n', - "Help string for this option is: ", helpString, '\n'); + "Help string for this option is: ", *helpString, '\n'); } else { this->HelpMessage[1] = ""; } |