summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/ccmake.cxx
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-10-13 17:51:18 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-10-23 20:15:20 (GMT)
commitd3d7e45df205bd22d6fbeaba853354b097034719 (patch)
tree971dd8d7fcee608a0545346afd94a1c0cfacecee /Source/CursesDialog/ccmake.cxx
parenta390d6cc891cebec8df01c37da3433e3abfc8a8b (diff)
downloadCMake-d3d7e45df205bd22d6fbeaba853354b097034719.zip
CMake-d3d7e45df205bd22d6fbeaba853354b097034719.tar.gz
CMake-d3d7e45df205bd22d6fbeaba853354b097034719.tar.bz2
Remove trailing white-spaces.
Diffstat (limited to 'Source/CursesDialog/ccmake.cxx')
-rw-r--r--Source/CursesDialog/ccmake.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 9ede7a6..7cf1071 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -76,11 +76,11 @@ void onsig(int)
if (cmCursesForm::CurrentForm)
{
endwin();
- initscr(); /* Initialization */
- noecho(); /* Echo off */
- cbreak(); /* nl- or cr not needed */
- keypad(stdscr,TRUE); /* Use key symbols as
- KEY_DOWN*/
+ initscr(); /* Initialization */
+ noecho(); /* Echo off */
+ cbreak(); /* nl- or cr not needed */
+ keypad(stdscr,TRUE); /* Use key symbols as
+ KEY_DOWN*/
refresh();
int x,y;
getmaxyx(stdscr, y, x);
@@ -89,7 +89,7 @@ void onsig(int)
}
signal(SIGWINCH, onsig);
}
-
+
}
void CMakeErrorHandler(const char* message, const char* title, bool&, void* clientData)
@@ -121,8 +121,8 @@ int main(int argc, char** argv)
doc.SetSection("Compatibility Commands",compatCommands);
doc.SetSeeAlsoList(cmDocumentationSeeAlso);
return doc.PrintRequestedDocumentation(std::cout)? 0:1;
- }
-
+ }
+
bool debug = false;
unsigned int i;
int j;
@@ -156,22 +156,22 @@ int main(int argc, char** argv)
cmCursesForm::DebugStart();
}
- initscr(); /* Initialization */
- noecho(); /* Echo off */
- cbreak(); /* nl- or cr not needed */
- keypad(stdscr,TRUE); /* Use key symbols as
- KEY_DOWN*/
+ initscr(); /* Initialization */
+ noecho(); /* Echo off */
+ cbreak(); /* nl- or cr not needed */
+ keypad(stdscr,TRUE); /* Use key symbols as
+ KEY_DOWN*/
signal(SIGWINCH, onsig);
int x,y;
getmaxyx(stdscr, y, x);
- if ( x < cmCursesMainForm::MIN_WIDTH ||
+ if ( x < cmCursesMainForm::MIN_WIDTH ||
y < cmCursesMainForm::MIN_HEIGHT )
{
endwin();
std::cerr << "Window is too small. A size of at least "
- << cmCursesMainForm::MIN_WIDTH << " x "
+ << cmCursesMainForm::MIN_WIDTH << " x "
<< cmCursesMainForm::MIN_HEIGHT
<< " is required to run ccmake." << std::endl;
return 1;
@@ -201,7 +201,7 @@ int main(int argc, char** argv)
myform->Render(1, 1, x, y);
myform->HandleInput();
}
-
+
// Need to clean-up better
curses_clear();
touchwin(stdscr);
@@ -210,7 +210,7 @@ int main(int argc, char** argv)
cmCursesForm::CurrentForm = 0;
std::cout << std::endl << std::endl;
-
+
return 0;
}