summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit4d07453ded674f5116ed4098cd4cec3b79cca3ba (patch)
tree08214092d9af9dc22c164a24ff75f8127d2e8dab
parentd144748d4767b2ccfb13857e23f78bc944e9531d (diff)
Fix String16 operator+ to actually work
This change fixes the String16 utility's operator+ function. Change-Id: Ibed7b07277b50bf178febc72b6ce497893e66f17
-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 07a0c1188ec9..9d8be38bd108 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;
}