diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp index 582a695fe..9bfcedd3d 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -1092,7 +1092,7 @@ QString TryConvertUrlToLocal(QString url) { const auto base = u"tg://privatepost?channel="_q + channel; auto added = QString(); if (const auto threadPostMatch = regex_match(u"^/(\\d+)/(\\d+)(/?\\?|/?$)"_q, privateMatch->captured(2))) { - added = u"&topic=%1&post=%2"_q.arg(threadPostMatch->captured(1)).arg(threadPostMatch->captured(2)); + added = u"&topic=%1&post=%2"_q.arg(threadPostMatch->captured(1), threadPostMatch->captured(2)); } else if (const auto postMatch = regex_match(u"^/(\\d+)(/?\\?|/?$)"_q, privateMatch->captured(2))) { added = u"&post="_q + postMatch->captured(1); } @@ -1122,7 +1122,7 @@ QString TryConvertUrlToLocal(QString url) { const auto base = u"tg://resolve?domain="_q + url_encode(usernameMatch->captured(1)); auto added = QString(); if (const auto threadPostMatch = regex_match(u"^/(\\d+)/(\\d+)(/?\\?|/?$)"_q, usernameMatch->captured(2))) { - added = u"&topic=%1&post=%2"_q.arg(threadPostMatch->captured(1)).arg(threadPostMatch->captured(2)); + added = u"&topic=%1&post=%2"_q.arg(threadPostMatch->captured(1), threadPostMatch->captured(2)); } else if (const auto postMatch = regex_match(u"^/(\\d+)(/?\\?|/?$)"_q, usernameMatch->captured(2))) { added = u"&post="_q + postMatch->captured(1); } else if (const auto storyMatch = regex_match(u"^/s/(\\d+)(/?\\?|/?$)"_q, usernameMatch->captured(2))) { diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index d432a5d19..6feacdb5b 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -216,7 +216,7 @@ void Sandbox::setupScreenScale() { const auto logEnv = [](const char *name) { const auto value = qEnvironmentVariable(name); if (!value.isEmpty()) { - LOG(("%1: %2").arg(name).arg(value)); + LOG(("%1: %2").arg(name, value)); } }; logEnv("QT_DEVICE_PIXEL_RATIO"); diff --git a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp index b59bf86ba..378d9b4d1 100644 --- a/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp +++ b/Telegram/SourceFiles/ffmpeg/ffmpeg_utility.cpp @@ -134,8 +134,9 @@ void PremultiplyLine(uchar *dst, const uchar *src, int intsCount) { } DEBUG_LOG(("Video Info: " "Trying \"%1\" hardware acceleration for \"%2\" decoder." - ).arg(av_hwdevice_get_type_name(type) - ).arg(context->codec->name)); + ).arg( + av_hwdevice_get_type_name(type), + context->codec->name)); if (parent->hw_device_ctx) { av_buffer_unref(&parent->hw_device_ctx); } diff --git a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp index cba6d2e7c..3f507ca61 100644 --- a/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp +++ b/Telegram/SourceFiles/history/view/controls/history_view_voice_record_bar.cpp @@ -82,8 +82,7 @@ enum class FilterType { const auto durationString = Ui::FormatDurationText(duration / kPrecision); const auto decimalPart = duration % kPrecision; return QString("%1%2%3") - .arg(durationString) - .arg(QLocale().decimalPoint()) + .arg(durationString, QLocale().decimalPoint()) .arg(decimalPart); } diff --git a/Telegram/SourceFiles/mtproto/connection_http.cpp b/Telegram/SourceFiles/mtproto/connection_http.cpp index 37b9d2198..ad899df2e 100644 --- a/Telegram/SourceFiles/mtproto/connection_http.cpp +++ b/Telegram/SourceFiles/mtproto/connection_http.cpp @@ -85,8 +85,7 @@ void HttpConnection::connectToServer( if (Logs::DebugEnabled()) { _debugId = u"%1(dc:%2,%3)"_q .arg(_debugId.toInt()) - .arg(ProtocolDcDebugId(protocolDcId)) - .arg(url().toDisplayString()); + .arg(ProtocolDcDebugId(protocolDcId), url().toDisplayString()); } _pingTime = crl::now(); diff --git a/Telegram/SourceFiles/mtproto/connection_tcp.cpp b/Telegram/SourceFiles/mtproto/connection_tcp.cpp index 6fa51a999..26dff1dd9 100644 --- a/Telegram/SourceFiles/mtproto/connection_tcp.cpp +++ b/Telegram/SourceFiles/mtproto/connection_tcp.cpp @@ -536,9 +536,10 @@ void TcpConnection::connectToServer( const auto postfix = _socket->debugPostfix(); _debugId = u"%1(dc:%2,%3%4:%5%6)"_q .arg(_debugId.toInt()) - .arg(ProtocolDcDebugId(_protocolDcId)) - .arg((_proxy.type == ProxyData::Type::Mtproto) ? "mtproxy " : "") - .arg(_address) + .arg( + ProtocolDcDebugId(_protocolDcId), + (_proxy.type == ProxyData::Type::Mtproto) ? "mtproxy " : "", + _address) .arg(_port) .arg(postfix.isEmpty() ? _protocol->debugPostfix() : postfix); _socket->setDebugId(_debugId); diff --git a/Telegram/SourceFiles/payments/payments_form.cpp b/Telegram/SourceFiles/payments/payments_form.cpp index 9ff737d1c..9ca9bc668 100644 --- a/Telegram/SourceFiles/payments/payments_form.cpp +++ b/Telegram/SourceFiles/payments/payments_form.cpp @@ -985,8 +985,7 @@ void Form::validateCard( if (error) { LOG(("Stripe Error %1: %2 (%3)" ).arg(int(error.code()) - ).arg(error.description() - ).arg(error.message())); + ).arg(error.description(), error.message())); _updates.fire(Error{ Error::Type::Stripe, error.description() }); } else { setPaymentCredentials({ @@ -1036,8 +1035,7 @@ void Form::validateCard( if (error) { LOG(("SmartGlocal Error %1: %2 (%3)" ).arg(int(error.code()) - ).arg(error.description() - ).arg(error.message())); + ).arg(error.description(), error.message())); _updates.fire(Error{ Error::Type::SmartGlocal, error.description(),