mirror of
https://github.com/taglib/taglib.git
synced 2025-07-25 08:24:29 -04:00
Detach before appending a character
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@944552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -560,6 +560,8 @@ String &String::operator+=(wchar_t c)
|
||||
|
||||
String &String::operator+=(char c)
|
||||
{
|
||||
detach();
|
||||
|
||||
d->data += uchar(c);
|
||||
return *this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user