diff options
author | Brad King <brad.king@kitware.com> | 2019-08-22 14:23:24 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-22 14:23:34 (GMT) |
commit | 337be1507d0850c1d83de0f9ad87a780c9cb61af (patch) | |
tree | 8f6e685341766cc429b5120a1a120bbfaf9bbaea /Source/CursesDialog/cmCursesStringWidget.cxx | |
parent | 6e1ff50efbc49628e7f9575b57128c0829bf607c (diff) | |
parent | d331021255ba9092fa34e8e479d724b1092c704d (diff) | |
download | CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.zip CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.gz CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.bz2 |
Merge topic 'isolate-declarations'
d331021255 clang-tidy: isolate declarations for readability
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3704
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; |