diff options
author | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2017-05-23 17:39:25 +0900 |
---|---|---|
committer | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2017-05-23 17:46:16 +0900 |
commit | 48a1a05a887dbc9fb138b401a440ba4452cbecd5 (patch) | |
tree | 241aaa2f2f145eb8f1018224f03fc20e734aaa85 | |
parent | 6000a19f70ef57f993b7f5594a2dcf9651e5801d (diff) |
Fix MSVC warnings about unreferenced variables.
-rw-r--r-- | taglib/toolkit/tstring.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/taglib/toolkit/tstring.cpp b/taglib/toolkit/tstring.cpp index 283a7f2b..b26e02fa 100644 --- a/taglib/toolkit/tstring.cpp +++ b/taglib/toolkit/tstring.cpp @@ -68,7 +68,8 @@ namespace data.resize(dstEnd - data.begin()); } catch(const utf8::exception &e) { - debug(String("String::copyFromUTF8() - UTF8-CPP error: ") + e.what()); + const String message(e.what()); + debug("String::copyFromUTF8() - UTF8-CPP error: " + message); data.clear(); } } @@ -435,7 +436,8 @@ ByteVector String::data(Type t) const v.resize(static_cast<unsigned int>(dstEnd - v.begin())); } catch(const utf8::exception &e) { - debug(String("String::data() - UTF8-CPP error: ") + e.what()); + const String message(e.what()); + debug("String::data() - UTF8-CPP error: " + message); v.clear(); } |