diff options
author | Artur Ryt <artur.ryt@gmail.com> | 2019-02-12 18:24:53 (GMT) |
---|---|---|
committer | Artur Ryt <artur.ryt@gmail.com> | 2019-02-12 18:24:53 (GMT) |
commit | c28abdb5aceac3fdf9383b0ee464d3578fbb86b3 (patch) | |
tree | 57a5794c0b408f5fdfd0c1fcf06c4c39734a7dda /Source | |
parent | 9d2ab63aaf5fb29d812dbfc942da4d7671c5d1b3 (diff) | |
download | CMake-c28abdb5aceac3fdf9383b0ee464d3578fbb86b3.zip CMake-c28abdb5aceac3fdf9383b0ee464d3578fbb86b3.tar.gz CMake-c28abdb5aceac3fdf9383b0ee464d3578fbb86b3.tar.bz2 |
cmCursesMainForm: Fix lambda return type deducing warning
It was issued by sparc compiler on Solaris system
See !2947
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 3fe1834..906dd02 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -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); |