From cd852a6e9f8167201980c85f1ce15caf2f704f47 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Mon, 1 Jun 2020 20:21:09 +0200 Subject: [PATCH] Silence some string concatenation wanings --- src/ippprinter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ippprinter.cpp b/src/ippprinter.cpp index 86e52d3..879fa18 100644 --- a/src/ippprinter.cpp +++ b/src/ippprinter.cpp @@ -99,7 +99,7 @@ void IppPrinter::refresh() { request.setUrl(httpUrl()); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/ipp"); - request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint "SEAPRINT_VERSION); + request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint " SEAPRINT_VERSION); QJsonObject o = opAttrs(); IppMsg msg = IppMsg(o); @@ -263,7 +263,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename, bool alwaysConvert){ request.setUrl(httpUrl()); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/ipp"); - request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint "SEAPRINT_VERSION); + request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint " SEAPRINT_VERSION); Mimer* mimer = Mimer::instance(); @@ -382,7 +382,7 @@ bool IppPrinter::getJobs() { request.setUrl(httpUrl()); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/ipp"); - request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint "SEAPRINT_VERSION); + request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint " SEAPRINT_VERSION); _jobs_nam->post(request, contents); @@ -404,7 +404,7 @@ bool IppPrinter::cancelJob(qint32 jobId) { request.setUrl(httpUrl()); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/ipp"); - request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint "SEAPRINT_VERSION); + request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint " SEAPRINT_VERSION); _job_cancel_nam->post(request, contents);