mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
cmCursesMainForm: Fix lambda return type deducing warning
It was issued by sparc compiler on Solaris system See !2947
This commit is contained in:
parent
9d2ab63aaf
commit
c28abdb5ac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user