diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-08-19 19:54:49 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-08-20 22:20:49 (GMT) |
commit | d331021255ba9092fa34e8e479d724b1092c704d (patch) | |
tree | 38158432b3bd50418635201d95ff0575b4e7ac78 /Source/CursesDialog/cmCursesStringWidget.cxx | |
parent | 43fe736b2bf272647fb24b481bdc9a585c0666ac (diff) | |
download | CMake-d331021255ba9092fa34e8e479d724b1092c704d.zip CMake-d331021255ba9092fa34e8e479d724b1092c704d.tar.gz CMake-d331021255ba9092fa34e8e479d724b1092c704d.tar.bz2 |
clang-tidy: isolate declarations for readability
Diffstat (limited to 'Source/CursesDialog/cmCursesStringWidget.cxx')
-rw-r--r-- | Source/CursesDialog/cmCursesStringWidget.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CursesDialog/cmCursesStringWidget.cxx b/Source/CursesDialog/cmCursesStringWidget.cxx index 5e2a329..26724e7 100644 --- a/Source/CursesDialog/cmCursesStringWidget.cxx +++ b/Source/CursesDialog/cmCursesStringWidget.cxx @@ -64,7 +64,8 @@ void cmCursesStringWidget::OnType(int& key, cmCursesMainForm* fm, bool cmCursesStringWidget::HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) { - int x, y; + int x; + int y; FORM* form = fm->GetForm(); // when not in edit mode, edit mode is entered by pressing enter or i (vim @@ -179,7 +180,8 @@ const char* cmCursesStringWidget::GetValue() bool cmCursesStringWidget::PrintKeys() { - int x, y; + int x; + int y; getmaxyx(stdscr, y, x); if (x < cmCursesMainForm::MIN_WIDTH || y < cmCursesMainForm::MIN_HEIGHT) { return false; |