Use braces around statements

This commit is contained in:
Daniel Pfeifer 2016-09-16 22:52:02 +02:00
parent 516f8edb2e
commit 809ca6c81f
2 changed files with 4 additions and 3 deletions

View File

@ -42,9 +42,9 @@ bool cmCMakeHostSystemInformationCommand::InitialPass(
result_list += ";"; result_list += ";";
} }
std::string value; std::string value;
if (!this->GetValue(info, key, value)) if (!this->GetValue(info, key, value)) {
return false; return false;
}
result_list += value; result_list += value;
} }

View File

@ -600,9 +600,10 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
// how many octets are there? // how many octets are there?
unsigned int num_utf8_bytes = 0; unsigned int num_utf8_bytes = 0;
for (unsigned int j = 0; num_utf8_bytes == 0 && j < 3; j++) { for (unsigned int j = 0; num_utf8_bytes == 0 && j < 3; j++) {
if ((c & utf8_check_table[j][0]) == utf8_check_table[j][1]) if ((c & utf8_check_table[j][0]) == utf8_check_table[j][1]) {
num_utf8_bytes = j + 2; num_utf8_bytes = j + 2;
} }
}
// get subsequent octets and check that they are valid // get subsequent octets and check that they are valid
for (unsigned int j = 0; j < num_utf8_bytes; j++) { for (unsigned int j = 0; j < num_utf8_bytes; j++) {