summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesStringWidget.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-08-18 17:39:54 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-08-18 17:39:54 (GMT)
commit4988b914e1fb7ca215436738ab08ed199a6f63d2 (patch)
treec6c2ea4dbf1fca8dc6e0e18ebd84bf0f63f88fe8 /Source/CursesDialog/cmCursesStringWidget.cxx
parent11e0ceaeab905075d93e279b87470b99c6401929 (diff)
downloadCMake-4988b914e1fb7ca215436738ab08ed199a6f63d2.zip
CMake-4988b914e1fb7ca215436738ab08ed199a6f63d2.tar.gz
CMake-4988b914e1fb7ca215436738ab08ed199a6f63d2.tar.bz2
CursesDialog: don't use else after return
Diffstat (limited to 'Source/CursesDialog/cmCursesStringWidget.cxx')
-rw-r--r--Source/CursesDialog/cmCursesStringWidget.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx
index c16de23..db98a00 100644
--- a/Source/CursesDialog/cmCursesStringWidget.cxx
+++ b/Source/CursesDialog/cmCursesStringWidget.cxx
@@ -94,10 +94,9 @@ bool cmCursesStringWidget::HandleInput(int& key, cmCursesMainForm* fm,
// quit
if (key == 'q') {
return false;
- } else {
- key = getch();
- continue;
}
+ key = getch();
+ continue;
}
// If resize occurred during edit, move out of edit mode
@@ -207,7 +206,6 @@ bool cmCursesStringWidget::PrintKeys()
curses_move(y - 3, 0);
printw(fmt_s, "Editing option, press [enter] to leave edit.");
return true;
- } else {
- return false;
}
+ return false;
}