From eb5788f00a1b2d57e68f294173711b4489c8dc7d Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Mon, 30 Aug 2021 18:05:32 +0200 Subject: [PATCH] Core: fix build (with MSVC) coreplugin.cpp:407: error: C2664: 'QString QString::arg(qlonglong,int,int,QChar) const': cannot convert argument 1 from 'const char [11]' to 'qlonglong' note: There is no context in which this conversion is possible qstring.h(444): note: see declaration of 'QString::arg' Change-Id: I2c4122c4bf0f6b35f6f7b45b2c2d014ac7863065 Reviewed-by: Christian Stenger --- src/plugins/coreplugin/coreplugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/coreplugin.cpp b/src/plugins/coreplugin/coreplugin.cpp index f20e9a0af90..916e3803dae 100644 --- a/src/plugins/coreplugin/coreplugin.cpp +++ b/src/plugins/coreplugin/coreplugin.cpp @@ -404,10 +404,10 @@ void CorePlugin::warnAboutCrashReporing() "To enable this feature go to %2."); if (Utils::HostOsInfo::isMacHost()) { - warnStr = warnStr.arg(Core::Constants::IDE_DISPLAY_NAME, + warnStr = warnStr.arg(QLatin1String(Core::Constants::IDE_DISPLAY_NAME), Core::Constants::IDE_DISPLAY_NAME + tr(" > Preferences > Environment > System")); } else { - warnStr = warnStr.arg(Core::Constants::IDE_DISPLAY_NAME, + warnStr = warnStr.arg(QLatin1String(Core::Constants::IDE_DISPLAY_NAME), tr("Tools > Options > Environment > System")); }