From 37bf88e54743640d29e99095bead3d8fd52af15c Mon Sep 17 00:00:00 2001 From: Josiah Gaskin Date: Tue, 16 Aug 2011 15:16:04 -0700 Subject: [PATCH] Fix String16 operator+ to actually work This change fixes the String16 utility's operator+ function. Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17 --- include/utils/String16.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/String16.h b/include/utils/String16.h index 07a0c1188..9d8be38bd 100644 --- a/include/utils/String16.h +++ b/include/utils/String16.h @@ -183,7 +183,7 @@ inline String16& String16::operator+=(const String16& other) inline String16 String16::operator+(const String16& other) const { - String16 tmp; + String16 tmp(*this); tmp += other; return tmp; }