diff options
Diffstat (limited to 'src/corelib/io/qipaddress.cpp')
-rw-r--r-- | src/corelib/io/qipaddress.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/io/qipaddress.cpp b/src/corelib/io/qipaddress.cpp index 444a38a319..c2b274f8b5 100644 --- a/src/corelib/io/qipaddress.cpp +++ b/src/corelib/io/qipaddress.cpp @@ -22,9 +22,9 @@ static QString number(quint8 val) typedef QVarLengthArray<char, 64> Buffer; static const QChar *checkedToAscii(Buffer &buffer, const QChar *begin, const QChar *end) { - const ushort *const ubegin = reinterpret_cast<const ushort *>(begin); - const ushort *const uend = reinterpret_cast<const ushort *>(end); - const ushort *src = ubegin; + const auto *const ubegin = reinterpret_cast<const char16_t *>(begin); + const auto *const uend = reinterpret_cast<const char16_t *>(end); + auto *src = ubegin; buffer.resize(uend - ubegin + 1); char *dst = buffer.data(); @@ -61,7 +61,7 @@ static bool parseIp4Internal(IPv4Address &address, const char *ptr, bool acceptL return false; auto [ll, used] = qstrntoull(ptr, stop - ptr, 0); - quint32 x = ll; + const quint32 x = quint32(ll); if (used <= 0 || ll != x) return false; |