mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
detach when using non-const operator[]
BUG:169389 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@850657 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
8434d19928
commit
d2a1cfa32d
@ -510,6 +510,8 @@ String String::number(int n) // static
|
||||
|
||||
TagLib::wchar &String::operator[](int i)
|
||||
{
|
||||
detach();
|
||||
|
||||
return d->data[i];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user