Skip to content

Commit a8313e7

Browse files
Xavier DucrohetAndroid Code Review
authored andcommitted
Merge "Fix String16 operator+ to actually work"
2 parents baaf3ce + 4d07453 commit a8313e7

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)