1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +08:00

Add missing braces around statements.

Apply fixits of clang-tidy's readability-braces-around-statements
checker.
This commit is contained in:
Daniel Pfeifer
2016-06-10 18:36:24 +02:00
parent bd9e551c1a
commit a16bf141bc
26 changed files with 198 additions and 105 deletions

View File

@@ -54,9 +54,9 @@ void cmCursesLongMessageForm::UpdateStatusBar()
size = cmCursesMainForm::MAX_WIDTH - 1;
}
strncpy(bar, this->Title.c_str(), size);
for (size_t i = size - 1; i < cmCursesMainForm::MAX_WIDTH; i++)
for (size_t i = size - 1; i < cmCursesMainForm::MAX_WIDTH; i++) {
bar[i] = ' ';
}
int width;
if (x < cmCursesMainForm::MAX_WIDTH) {
width = x;