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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user