From: Tsuda Kageyu Date: Tue, 23 May 2017 08:39:25 +0000 (+0900) Subject: Fix MSVC warnings about unreferenced variables. X-Git-Tag: v1.12-beta-1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=48a1a05a887dbc9fb138b401a440ba4452cbecd5;p=taglib Fix MSVC warnings about unreferenced variables. --- 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(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(); }