diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-01 12:14:45 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-06-02 11:37:56 (GMT) |
commit | ed2fe558b03e006d708c0fb210f218d9a80ffc01 (patch) | |
tree | fa065408e1c2d5f55ccd05eb96b27cebcdbaf2f0 /Source/CursesDialog/cmCursesMainForm.cxx | |
parent | 44f1744bed50e6ef47b179810a7533538b31722b (diff) | |
download | CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.zip CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.tar.gz CMake-ed2fe558b03e006d708c0fb210f218d9a80ffc01.tar.bz2 |
CursesDialog: resolve clang-tidy warnings
Fixes:
- unnecessary bool expression (cmCursesMainForm)
- removes a duplicate if/else branch (RegexExplorer)
- collapses redundant if/else branch logic (CMakeSetupDialog and
cmCursesStringWidget)
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index df34283..ce1a715 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -853,11 +853,7 @@ void cmCursesMainForm::HandleInput() } // switch advanced on/off else if (key == 't') { - if (this->AdvancedMode) { - this->AdvancedMode = false; - } else { - this->AdvancedMode = true; - } + this->AdvancedMode = !this->AdvancedMode; getmaxyx(stdscr, y, x); this->RePost(); this->Render(1, 1, x, y); |