From f528a240d9d3456b041a2c100f67e67f53e22bc3 Mon Sep 17 00:00:00 2001 From: Nicholas Guriev Date: Sat, 6 Mar 2021 09:38:12 +0300 Subject: [PATCH] Rely on QT_STRINGIFY instead of custom macro --- Telegram/SourceFiles/config.h | 2 +- Telegram/SourceFiles/platform/linux/launcher_linux.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/config.h b/Telegram/SourceFiles/config.h index 40ee001439..57a8ac904f 100644 --- a/Telegram/SourceFiles/config.h +++ b/Telegram/SourceFiles/config.h @@ -75,7 +75,7 @@ w/CVnbwQOw0g5GBwwFV3r0uTTvy44xx8XXxk+Qknu4eBCsmrAFNnAgMBAAE=\n\ #if defined TDESKTOP_API_ID && defined TDESKTOP_API_HASH constexpr auto ApiId = TDESKTOP_API_ID; -constexpr auto ApiHash = MACRO_TO_STRING(TDESKTOP_API_HASH); +constexpr auto ApiHash = QT_STRINGIFY(TDESKTOP_API_HASH); #else // TDESKTOP_API_ID && TDESKTOP_API_HASH diff --git a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp index b3d097b43c..fe219721e9 100644 --- a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp @@ -66,7 +66,7 @@ void Launcher::initHook() { AppName.utf16().replace(' ', '_')); } - return qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME) ".desktop"); + return qsl(QT_STRINGIFY(TDESKTOP_LAUNCHER_BASENAME) ".desktop"); }()); }