projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
019314c
)
Pass std::string to constructor as const reference to avoid multiple
author
Alkis Evlogimenos
<alkis@evlogimenos.com>
Tue, 6 Jan 2004 09:16:02 +0000
(09:16 +0000)
committer
Alkis Evlogimenos
<alkis@evlogimenos.com>
Tue, 6 Jan 2004 09:16:02 +0000
(09:16 +0000)
copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10705
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Statistic.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Statistic.cpp
b/lib/Support/Statistic.cpp
index 9589fd7ebd98469e5e0b6ca3d450b6d9aa507dc6..7fa7547fee33368098a1095e62d6344b1e9b7570 100644
(file)
--- a/
lib/Support/Statistic.cpp
+++ b/
lib/Support/Statistic.cpp
@@
-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 {