浏览代码

ENH: tiny performance improvement

Ken Martin 18 年之前
父节点
当前提交
66a8c5763b
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/cmListFileCache.cxx

+ 2 - 1
Source/cmListFileCache.cxx

@@ -163,7 +163,8 @@ bool cmListFile::ParseFile(const char* filename,
           std::string name = cmSystemTools::LowerCase(i->Name);
           if (allowedCommands.find(name) == allowedCommands.end())
           {
-          isProblem = true;
+            isProblem = true;
+            break;
           }       
         }
       }