Fix MSVC warnings about unreferenced variables.

This commit is contained in:
Tsuda Kageyu 2017-05-23 17:39:25 +09:00
parent 6000a19f70
commit 48a1a05a88

View 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();
}