summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-08-19 19:54:49 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-08-20 22:20:49 (GMT)
commitd331021255ba9092fa34e8e479d724b1092c704d (patch)
tree38158432b3bd50418635201d95ff0575b4e7ac78 /Source/CursesDialog/ccmake.cxx
parent43fe736b2bf272647fb24b481bdc9a585c0666ac (diff)
downloadCMake-d331021255ba9092fa34e8e479d724b1092c704d.zip
CMake-d331021255ba9092fa34e8e479d724b1092c704d.tar.gz
CMake-d331021255ba9092fa34e8e479d724b1092c704d.tar.bz2
clang-tidy: isolate declarations for readability
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 7caed0c..ce32898 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -56,7 +56,8 @@ void onsig(int /*unused*/)
cbreak(); /* nl- or cr not needed */
keypad(stdscr, true); /* Use key symbols as KEY_DOWN */
refresh();
- int x, y;
+ int x;
+ int y;
getmaxyx(stdscr, y, x);
cmCursesForm::CurrentForm->Render(1, 1, x, y);
cmCursesForm::CurrentForm->UpdateStatusBar();
@@ -127,7 +128,8 @@ int main(int argc, char const* const* argv)
signal(SIGWINCH, onsig);
- int x, y;
+ int x;
+ int y;
getmaxyx(stdscr, y, x);
if (x < cmCursesMainForm::MIN_WIDTH || y < cmCursesMainForm::MIN_HEIGHT) {
endwin();