Suppress conversion warning

This commit is contained in:
Chocobo1 2022-02-19 13:51:02 +08:00
parent 5cb295341c
commit 14fc3dc9b3
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -53,6 +53,6 @@ void asConst(const T &&) = delete;
// https://doc.qt.io/qt-6/qstring.html#operator-22-22_qs // https://doc.qt.io/qt-6/qstring.html#operator-22-22_qs
inline QString operator"" _qs(const char16_t *str, const std::size_t size) inline QString operator"" _qs(const char16_t *str, const std::size_t size)
{ {
return QString::fromRawData(reinterpret_cast<const QChar *>(str), size); return QString::fromRawData(reinterpret_cast<const QChar *>(str), static_cast<int>(size));
} }
#endif #endif