Commit 26412846 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'cmcurses-fix-solaris-lambda-warning'

c28abdb5 cmCursesMainForm: Fix lambda return type deducing warning
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !2955
parents 21853e24 c28abdb5
Pipeline #129944 passed with stage
in 0 seconds
......@@ -647,11 +647,12 @@ void cmCursesMainForm::RemoveEntry(const char* value)
return;
}
auto removeIt = std::find_if(this->Entries->begin(), this->Entries->end(),
[value](cmCursesCacheEntryComposite* entry) {
const char* val = entry->GetValue();
return val && !strcmp(value, val);
});
auto removeIt =
std::find_if(this->Entries->begin(), this->Entries->end(),
[value](cmCursesCacheEntryComposite* entry) -> bool {
const char* val = entry->GetValue();
return val != nullptr && !strcmp(value, val);
});
if (removeIt != this->Entries->end()) {
this->CMakeInstance->UnwatchUnusedCli(value);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment