Skip to content

Commit

Permalink
Use multi-arg version of QString::arg
Browse files Browse the repository at this point in the history
Change-Id: Ib16a2c3feee10bbd9c784c5303fc0e4e97e5ef5b
Reviewed-by: Mårten Nordheim <[email protected]>
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
jsfdez committed Mar 19, 2019
1 parent 2459725 commit 71b37f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/httpserver/qhttpserverresponder_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ class QHttpServerResponderPrivate
request(request),
socket(socket)
{
const auto server = QStringLiteral("%1/%2(%3)")
.arg(QCoreApplication::instance()->applicationName())
.arg(QCoreApplication::instance()->applicationVersion())
.arg(QSysInfo::prettyProductName());
const auto server = QStringLiteral("%1/%2(%3)").arg(
QCoreApplication::instance()->applicationName(),
QCoreApplication::instance()->applicationVersion(),
QSysInfo::prettyProductName());
addHeader(QByteArrayLiteral("Server"), server.toUtf8());
}

Expand Down

0 comments on commit 71b37f8

Please sign in to comment.