[llvm-commits] [llvm] r52678 - /llvm/trunk/include/llvm/ADT/StringMap.h
Dan Gohman
gohman at apple.com
Tue Jun 24 09:40:22 PDT 2008
Author: djg
Date: Tue Jun 24 11:40:22 2008
New Revision: 52678
URL: http://llvm.org/viewvc/llvm-project?rev=52678&view=rev
Log:
Pass std::string by reference. Thanks Chris!
Modified:
llvm/trunk/include/llvm/ADT/StringMap.h
Modified: llvm/trunk/include/llvm/ADT/StringMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringMap.h?rev=52678&r1=52677&r2=52678&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringMap.h (original)
+++ llvm/trunk/include/llvm/ADT/StringMap.h Tue Jun 24 11:40:22 2008
@@ -384,7 +384,7 @@
return true;
}
- bool erase(std::string Key) {
+ bool erase(const std::string &Key) {
iterator I = find(Key);
if (I == end()) return false;
erase(I);
More information about the llvm-commits
mailing list