summaryrefslogtreecommitdiff
path: root/include/utils/String8.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils/String8.h')
-rw-r--r--include/utils/String8.h4
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;
}