Skip to content

Commit 4d07453

Browse files
Fix String16 operator+ to actually work
This change fixes the String16 utility's operator+ function. Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
1 parent d144748 commit 4d07453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/utils/String16.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ inline String16& String16::operator+=(const String16& other)
183183

184184
inline String16 String16::operator+(const String16& other) const
185185
{
186-
String16 tmp;
186+
String16 tmp(*this);
187187
tmp += other;
188188
return tmp;
189189
}

0 commit comments

Comments
 (0)