Przeglądaj źródła

ENH: tiny performance improvement

Ken Martin 17 lat temu
rodzic
commit
66a8c5763b
1 zmienionych plików z 2 dodań i 1 usunięć
  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;
           }       
         }
       }