diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-30 18:00:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-30 18:00:14 (GMT) |
commit | ec4331d2737f882e5f2f23360987f30364095506 (patch) | |
tree | 42105cc033a30d0c1b7ab5f71ab6696d71f594c3 /Source/cmBorlandMakefileGenerator.cxx | |
parent | fd22157e554a3f71eceec83dde1070ce76071e0d (diff) | |
download | CMake-ec4331d2737f882e5f2f23360987f30364095506.zip CMake-ec4331d2737f882e5f2f23360987f30364095506.tar.gz CMake-ec4331d2737f882e5f2f23360987f30364095506.tar.bz2 |
ENH: do not use count, find for map lookup
Diffstat (limited to 'Source/cmBorlandMakefileGenerator.cxx')
-rw-r--r-- | Source/cmBorlandMakefileGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmBorlandMakefileGenerator.cxx b/Source/cmBorlandMakefileGenerator.cxx index fcee37e..0e6fa01 100644 --- a/Source/cmBorlandMakefileGenerator.cxx +++ b/Source/cmBorlandMakefileGenerator.cxx @@ -414,9 +414,10 @@ std::string cmBorlandMakefileGenerator::CreateMakeVariable(const char* s, const std::string unmodified = s; unmodified += s2; // see if th - if(m_MakeVariableMap.count(unmodified)) + std::map<cmStdString, cmStdString>::iterator i = m_MakeVariableMap.find(unmodified); + if(i != m_MakeVariableMap.end()) { - return m_MakeVariableMap[unmodified]; + return i->second; } std::string ret = unmodified; // if the string is greater the 32 chars it is an invalid vairable name |