|
@@ -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] = "";
|
|
|
}
|