1
0
Эх сурвалжийг харах

ENH: tiny performance improvement

Ken Martin 17 жил өмнө
parent
commit
66a8c5763b

+ 2 - 1
Source/cmListFileCache.cxx

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