diff options
author | Josiah Gaskin <josiahgaskin@google.com> | 2011-08-16 15:16:04 -0700 |
---|---|---|
committer | Josiah Gaskin <josiahgaskin@google.com> | 2011-08-16 15:16:04 -0700 |
commit | 37bf88e54743640d29e99095bead3d8fd52af15c (patch) | |
tree | 1a004e7b12ce9e5bf2c3023e3e282d6c2cbd2373 | |
parent | dbd5be5408b4cb50e6f54ac5eb229bf015739c67 (diff) | |
download | frameworks_native-37bf88e54743640d29e99095bead3d8fd52af15c.zip frameworks_native-37bf88e54743640d29e99095bead3d8fd52af15c.tar.gz frameworks_native-37bf88e54743640d29e99095bead3d8fd52af15c.tar.bz2 |
Fix String16 operator+ to actually work
This change fixes the String16 utility's operator+ function.
Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
-rw-r--r-- | include/utils/String16.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/String16.h b/include/utils/String16.h index 07a0c11..9d8be38 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; } |