From ced5f262ba66541c54685eeb1d58b3b7acf82cca Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Wed, 30 Oct 2013 19:37:44 +0900 Subject: [PATCH] String::upper() no longer modifies the String itself --- taglib/toolkit/tstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taglib/toolkit/tstring.cpp b/taglib/toolkit/tstring.cpp index 25d8db1c..52f176b2 100644 --- a/taglib/toolkit/tstring.cpp +++ b/taglib/toolkit/tstring.cpp @@ -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;