Skip to content

Commit

Permalink
Fix qstring-allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 8, 2024
1 parent 4b41c17 commit b6a59b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/shared/utils/downloadqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include <iostream>
#include <cstdio>

using namespace Qt::Literals::StringLiterals;

DownloadQueue::DownloadQueue()
{
_networkManager.setRedirectPolicy(QNetworkRequest::NoLessSafeRedirectPolicy);
Expand Down Expand Up @@ -167,7 +169,7 @@ void DownloadQueue::onReplyReceived(QNetworkReply* reply)
{
auto httpCode = static_cast<int>(_reply->error());
auto networkErrorString = QVariant::fromValue(_reply->error()).toString();
auto errorString = QString("Network Error: %1 (%2/%3)")
auto errorString = u"Network Error: %1 (%2/%3)"_s
.arg(_reply->errorString())
.arg(httpCode)
.arg(networkErrorString);
Expand Down

0 comments on commit b6a59b6

Please sign in to comment.