Pass std::string to constructor as const reference to avoid multiple

copies.

llvm-svn: 10705
This commit is contained in:
Alkis Evlogimenos 2004-01-06 09:16:02 +00:00
parent b238b68122
commit ac49a51bac

View File

@ -43,7 +43,7 @@ struct StatRecord {
std::string Value;
const char *Name, *Desc;
StatRecord(const std::string V, const char *N, const char *D)
StatRecord(const std::string &V, const char *N, const char *D)
: Value(V), Name(N), Desc(D) {}
bool operator<(const StatRecord &SR) const {