mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Pass std::string to constructor as const reference to avoid multiple
copies. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10705 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
019314cdc7
commit
d2c39e991e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user