From 66a8c5763b3b4c6d0be9a5ef030240edfc2486dc Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 20 Mar 2008 10:46:24 -0400 Subject: ENH: tiny performance improvement --- Source/cmListFileCache.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index c546f18..27a4878 100644 --- a/Source/cmListFileCache.cxx +++ b/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; } } } -- cgit v0.12