mirror of
https://github.com/taglib/taglib.git
synced 2025-07-22 23:14:33 -04:00
String::upper() no longer modifies the String itself
This commit is contained in:
@ -390,7 +390,7 @@ String String::upper() const
|
||||
{
|
||||
static const int shift = 'A' - 'a';
|
||||
|
||||
String s(*this);
|
||||
String s(*d->data);
|
||||
for(Iterator it = s.begin(); it != s.end(); ++it) {
|
||||
if(*it >= 'a' && *it <= 'z')
|
||||
*it = *it + shift;
|
||||
|
Reference in New Issue
Block a user