summaryrefslogtreecommitdiffstats
path: root/include/utils
diff options
context:
space:
mode:
authorJosiah Gaskin <josiahgaskin@google.com>2011-08-16 15:16:04 -0700
committerJosiah Gaskin <josiahgaskin@google.com>2011-08-16 15:16:04 -0700
commit4d07453ded674f5116ed4098cd4cec3b79cca3ba (patch)
tree08214092d9af9dc22c164a24ff75f8127d2e8dab /include/utils
parentd144748d4767b2ccfb13857e23f78bc944e9531d (diff)
downloadframeworks_base-4d07453ded674f5116ed4098cd4cec3b79cca3ba.zip
frameworks_base-4d07453ded674f5116ed4098cd4cec3b79cca3ba.tar.gz
frameworks_base-4d07453ded674f5116ed4098cd4cec3b79cca3ba.tar.bz2
Fix String16 operator+ to actually work
This change fixes the String16 utility's operator+ function. Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/String16.h2
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;
}