[msvc] Fix compilation errors and warnings (#141)

This commit is contained in:
Tadej Novak
2021-08-29 22:53:42 +02:00
committed by GitHub
parent c0d76c69cc
commit fe041b80ca
51 changed files with 206 additions and 195 deletions

View File

@@ -6,7 +6,7 @@ namespace mbgl {
namespace util {
std::u16string convertUTF8ToUTF16(std::string const& utf8) {
auto utf16 = QString::fromUtf8(utf8.data(), utf8.length());
auto utf16 = QString::fromUtf8(utf8.data(), static_cast<int>(utf8.length()));
// Newers Qt have QString::toStdU16String(), but this is how it is
// implemented. Do it here to keep compatibility with older versions.