String8::operator+ has a bug. follow this method:
inline String8 String8::operator+(const String8& other) const
{
String8 tmp; // empty?
tmp += other;
return tmp;
}
It meas (str1 + str2) always returns str2.
I think it sould be String8 tmp(*this).
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en