mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
String::upper() no longer modifies the String itself
This commit is contained in:
parent
57d12de7dd
commit
ced5f262ba
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user