瀏覽代碼

Use braces around statements

Daniel Pfeifer 9 年之前
父節點
當前提交
809ca6c81f
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 2 2
      Source/cmCMakeHostSystemInformationCommand.cxx
  2. 2 1
      Source/cmFileCommand.cxx

+ 2 - 2
Source/cmCMakeHostSystemInformationCommand.cxx

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

+ 2 - 1
Source/cmFileCommand.cxx

@@ -600,8 +600,9 @@ bool cmFileCommand::HandleStringsCommand(std::vector<std::string> const& args)
       // how many octets are there?
       unsigned int num_utf8_bytes = 0;
       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;
+        }
       }
 
       // get subsequent octets and check that they are valid