From 001068cb2c89d3b928fb2534cd37e863cd39cadc Mon Sep 17 00:00:00 2001 From: Anatoly Shirokov Date: Tue, 13 Feb 2018 08:46:34 +0300 Subject: [PATCH] Revert the qstr definition to be compiled with Qt 5.9 --- Telegram/SourceFiles/core/basic_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/basic_types.h b/Telegram/SourceFiles/core/basic_types.h index f4fa0809a..d8279bb6c 100644 --- a/Telegram/SourceFiles/core/basic_types.h +++ b/Telegram/SourceFiles/core/basic_types.h @@ -54,4 +54,4 @@ void as_const(const T&&) = delete; #include #define qsl(s) QStringLiteral(s) -#define qstr(s) QLatin1String(s, s + sizeof(s)) +#define qstr(s) QLatin1String(s, static_cast(sizeof(s)-1))