@@ -78,7 +78,7 @@ bool QgsWfsRequest::sendGET( const QUrl &url, bool synchronous, bool forceRefres
78
78
QString modifiedUrlString = modifiedUrl.toString ();
79
79
// Qt5 does URL encoding from some reason (of the FILTER parameter for example)
80
80
modifiedUrlString = QUrl::fromPercentEncoding ( modifiedUrlString.toUtf8 () );
81
- QgsDebugMsg ( QString ( " Get %1" ).arg ( modifiedUrlString ) );
81
+ QgsDebugMsg ( QStringLiteral ( " Get %1" ).arg ( modifiedUrlString ) );
82
82
modifiedUrlString = modifiedUrlString.mid ( QStringLiteral ( " http://" ).size () );
83
83
QString args = modifiedUrlString.mid ( modifiedUrlString.indexOf ( ' ?' ) );
84
84
if ( modifiedUrlString.size () > 256 )
@@ -280,7 +280,7 @@ void QgsWfsRequest::abort()
280
280
281
281
void QgsWfsRequest::replyProgress ( qint64 bytesReceived, qint64 bytesTotal )
282
282
{
283
- QgsDebugMsg ( QStringLiteral ( " %1 of %2 bytes downloaded." ).arg ( bytesReceived ).arg ( bytesTotal < 0 ? QString ( " unknown number of" ) : QString::number ( bytesTotal ) ) );
283
+ QgsDebugMsg ( QStringLiteral ( " %1 of %2 bytes downloaded." ).arg ( bytesReceived ).arg ( bytesTotal < 0 ? QStringLiteral ( " unknown number of" ) : QString::number ( bytesTotal ) ) );
284
284
285
285
if ( bytesReceived != 0 )
286
286
mGotNonEmptyResponse = true ;
@@ -307,11 +307,11 @@ void QgsWfsRequest::replyFinished()
307
307
{
308
308
if ( mReply ->error () == QNetworkReply::NoError )
309
309
{
310
- QgsDebugMsg ( " reply OK" );
310
+ QgsDebugMsg ( QStringLiteral ( " reply OK" ) );
311
311
QVariant redirect = mReply ->attribute ( QNetworkRequest::RedirectionTargetAttribute );
312
312
if ( !redirect.isNull () )
313
313
{
314
- QgsDebugMsg ( " Request redirected." );
314
+ QgsDebugMsg ( QStringLiteral ( " Request redirected." ) );
315
315
316
316
const QUrl &toUrl = redirect.toUrl ();
317
317
mReply ->request ();
@@ -339,7 +339,7 @@ void QgsWfsRequest::replyFinished()
339
339
mReply ->deleteLater ();
340
340
mReply = nullptr ;
341
341
342
- QgsDebugMsg ( QString ( " redirected: %1 forceRefresh=%2" ).arg ( redirect.toString () ).arg ( mForceRefresh ) );
342
+ QgsDebugMsg ( QStringLiteral ( " redirected: %1 forceRefresh=%2" ).arg ( redirect.toString () ).arg ( mForceRefresh ) );
343
343
mReply = QgsNetworkAccessManager::instance ()->get ( request );
344
344
mReply ->setReadBufferSize ( READ_BUFFER_SIZE_HINT );
345
345
if ( !mUri .auth ().setAuthorizationReply ( mReply ) )
@@ -372,7 +372,7 @@ void QgsWfsRequest::replyFinished()
372
372
}
373
373
cmd.setRawHeaders ( hl );
374
374
375
- QgsDebugMsg ( QString ( " expirationDate:%1" ).arg ( cmd.expirationDate ().toString () ) );
375
+ QgsDebugMsg ( QStringLiteral ( " expirationDate:%1" ).arg ( cmd.expirationDate ().toString () ) );
376
376
if ( cmd.expirationDate ().isNull () )
377
377
{
378
378
cmd.setExpirationDate ( QDateTime::currentDateTime ().addSecs ( defaultExpirationInSec () ) );
@@ -382,12 +382,12 @@ void QgsWfsRequest::replyFinished()
382
382
}
383
383
else
384
384
{
385
- QgsDebugMsg ( " No cache!" );
385
+ QgsDebugMsg ( QStringLiteral ( " No cache!" ) );
386
386
}
387
387
388
388
#ifdef QGISDEBUG
389
389
bool fromCache = mReply ->attribute ( QNetworkRequest::SourceIsFromCacheAttribute ).toBool ();
390
- QgsDebugMsg ( QString ( " Reply was cached: %1" ).arg ( fromCache ) );
390
+ QgsDebugMsg ( QStringLiteral ( " Reply was cached: %1" ).arg ( fromCache ) );
391
391
#endif
392
392
393
393
mResponse = mReply ->readAll ();
0 commit comments