From 14fc3dc9b3152ec998cbc7cb578bd5cc37ccfef6 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 19 Feb 2022 13:51:02 +0800 Subject: [PATCH] Suppress conversion warning --- src/base/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/global.h b/src/base/global.h index 1922b765d..8d5f38981 100644 --- a/src/base/global.h +++ b/src/base/global.h @@ -53,6 +53,6 @@ void asConst(const T &&) = delete; // 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) { - return QString::fromRawData(reinterpret_cast(str), size); + return QString::fromRawData(reinterpret_cast(str), static_cast(size)); } #endif