diff options
| author | 2010-08-06 19:04:09 -0700 | |
|---|---|---|
| committer | 2010-08-06 19:04:09 -0700 | |
| commit | 91fc6e8c89f176e157083c3fb06f05af01f61fc3 (patch) | |
| tree | 7fb6533e1c6ce0139b6f59e7af16927e52412493 /include/utils | |
| parent | 072671f0ee5bb506a2668280e18cb12c9492ed12 (diff) | |
| parent | d7ce227bcb854f048124bbc487eba844c6599142 (diff) | |
am d7ce227b: am 818490ab: Fix String8::operator+
Merge commit 'd7ce227bcb854f048124bbc487eba844c6599142'
* commit 'd7ce227bcb854f048124bbc487eba844c6599142':
Fix String8::operator+
Diffstat (limited to 'include/utils')
| -rw-r--r-- | include/utils/String8.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/utils/String8.h b/include/utils/String8.h index 0b18fe3d22a8..4e41410f4388 100644 --- a/include/utils/String8.h +++ b/include/utils/String8.h @@ -374,7 +374,7 @@ inline String8& String8::operator+=(const String8& other) inline String8 String8::operator+(const String8& other) const { - String8 tmp; + String8 tmp(*this); tmp += other; return tmp; } @@ -387,7 +387,7 @@ inline String8& String8::operator+=(const char* other) inline String8 String8::operator+(const char* other) const { - String8 tmp; + String8 tmp(*this); tmp += other; return tmp; } |