Pass std::string by reference. Thanks Chris!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-06-24 16:40:22 +00:00
parent 1d9a277761
commit 2b08676ca8

View File

@ -384,7 +384,7 @@ public:
return true; return true;
} }
bool erase(std::string Key) { bool erase(const std::string &Key) {
iterator I = find(Key); iterator I = find(Key);
if (I == end()) return false; if (I == end()) return false;
erase(I); erase(I);