@@ -37,8 +37,6 @@ QgsGeoNodeRequest::QgsGeoNodeRequest( bool forceRefresh, QObject *parent )
37
37
QgsGeoNodeRequest::QgsGeoNodeRequest ( const QString &baseUrl, /* const QgsWmsAuthorization &auth,*/ bool forceRefresh, QObject *parent )
38
38
: QObject( parent )
39
39
, mBaseUrl( baseUrl )
40
- , mGeoNodeReply( nullptr )
41
- , mIsAborted( false )
42
40
, mForceRefresh( forceRefresh )
43
41
{
44
42
@@ -70,7 +68,7 @@ QList<QgsServiceLayerDetail> QgsGeoNodeRequest::getLayers()
70
68
return parseLayers ( this ->response () );
71
69
}
72
70
73
- QgsGeoNodeStyle QgsGeoNodeRequest::getDefaultStyle ( QString layerName )
71
+ QgsGeoNodeStyle QgsGeoNodeRequest::getDefaultStyle ( const QString & layerName )
74
72
{
75
73
QgsGeoNodeStyle defaultStyle;
76
74
bool success = request ( QStringLiteral ( " /api/layers?name=" ) + layerName );
@@ -94,7 +92,7 @@ QgsGeoNodeStyle QgsGeoNodeRequest::getDefaultStyle( QString layerName )
94
92
95
93
}
96
94
97
- QList<QgsGeoNodeStyle> QgsGeoNodeRequest::getStyles ( QString layerName )
95
+ QList<QgsGeoNodeStyle> QgsGeoNodeRequest::getStyles ( const QString & layerName )
98
96
{
99
97
QList<QgsGeoNodeStyle> geoNodeStyles;
100
98
bool success = request ( QStringLiteral ( " /api/styles?layer__name=" ) + layerName );
@@ -122,7 +120,7 @@ QList<QgsGeoNodeStyle> QgsGeoNodeRequest::getStyles( QString layerName )
122
120
123
121
}
124
122
125
- QgsGeoNodeStyle QgsGeoNodeRequest::getStyle ( QString styleID )
123
+ QgsGeoNodeStyle QgsGeoNodeRequest::getStyle ( const QString & styleID )
126
124
{
127
125
QString endPoint = QStringLiteral ( " /api/styles/" ) + styleID;
128
126
@@ -243,7 +241,7 @@ void QgsGeoNodeRequest::replyFinished()
243
241
244
242
}
245
243
246
- QList<QgsServiceLayerDetail> QgsGeoNodeRequest::parseLayers ( QByteArray layerResponse )
244
+ QList<QgsServiceLayerDetail> QgsGeoNodeRequest::parseLayers ( const QByteArray & layerResponse )
247
245
{
248
246
QList<QgsServiceLayerDetail> layers;
249
247
if ( layerResponse.isEmpty () )
@@ -356,7 +354,7 @@ QList<QgsServiceLayerDetail> QgsGeoNodeRequest::parseLayers( QByteArray layerRes
356
354
return layers;
357
355
}
358
356
359
- QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle ( QString styleUrl )
357
+ QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle ( const QString & styleUrl )
360
358
{
361
359
QgsGeoNodeStyle geoNodeStyle;
362
360
@@ -388,7 +386,7 @@ QgsGeoNodeStyle QgsGeoNodeRequest::retrieveStyle( QString styleUrl )
388
386
return geoNodeStyle;
389
387
}
390
388
391
- QStringList QgsGeoNodeRequest::serviceUrls ( QString serviceType )
389
+ QStringList QgsGeoNodeRequest::serviceUrls ( const QString & serviceType )
392
390
{
393
391
QStringList urls;
394
392
@@ -432,7 +430,7 @@ QStringList QgsGeoNodeRequest::serviceUrls( QString serviceType )
432
430
return urls;
433
431
}
434
432
435
- QgsStringMap QgsGeoNodeRequest::serviceUrlData ( QString serviceType )
433
+ QgsStringMap QgsGeoNodeRequest::serviceUrlData ( const QString & serviceType )
436
434
{
437
435
QgsStringMap urls;
438
436
@@ -478,7 +476,7 @@ QgsStringMap QgsGeoNodeRequest::serviceUrlData( QString serviceType )
478
476
return urls;
479
477
}
480
478
481
- bool QgsGeoNodeRequest::request ( QString endPoint )
479
+ bool QgsGeoNodeRequest::request ( const QString & endPoint )
482
480
{
483
481
abort ();
484
482
mIsAborted = false ;
0 commit comments