]> granicus.if.org Git - taglib/commitdiff
Fix MSVC warnings about unreferenced variables.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 23 May 2017 08:39:25 +0000 (17:39 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 23 May 2017 08:46:16 +0000 (17:46 +0900)
taglib/toolkit/tstring.cpp

index 283a7f2b9b6a58c535ed9b7c1c1b4199b3a3508d..b26e02fa41b077a3babc0a7d1a6be4b8f18c2bd7 100644 (file)
@@ -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();
       }