Fixed a bug in appending strings and added some relevant tests

This commit is contained in:
Tsuda Kageyu
2013-09-08 14:41:35 +09:00
parent 70e58dcb21
commit 60590c0a1a
2 changed files with 19 additions and 9 deletions

View File

@ -635,7 +635,7 @@ String &String::operator+=(const wchar_t *s)
{
detach();
*d->data += *s;
*d->data += s;
return *this;
}