@@ -121,7 +121,7 @@ namespace QgsWfs
121121 QString name = layer->name ();
122122 if ( !layer->shortName ().isEmpty () )
123123 name = layer->shortName ();
124- name = name.replace ( QLatin1String ( " " ), QLatin1String ( " _ " ) );
124+ name = name.replace ( ' ' , ' _ ' );
125125
126126 if ( typeNameList.contains ( name ) )
127127 {
@@ -387,7 +387,7 @@ namespace QgsWfs
387387 // parse FEATUREID
388388 if ( parameters.contains ( QStringLiteral ( " FEATUREID" ) ) )
389389 {
390- QStringList fidList = parameters.value ( QStringLiteral ( " FEATUREID" ) ).split ( QStringLiteral ( " , " ) );
390+ QStringList fidList = parameters.value ( QStringLiteral ( " FEATUREID" ) ).split ( ' , ' );
391391 // Verifying the 1:1 mapping between FEATUREID and PROPERTYNAME
392392 if ( !propertyNameList.isEmpty () && propertyNameList.size () != fidList.size () )
393393 {
@@ -417,13 +417,13 @@ namespace QgsWfs
417417 propertyName = *propertyNameIt;
418418 }
419419 // testing typename in the WFS featureID
420- if ( !fid.contains ( QLatin1String ( " . " ) ) )
420+ if ( !fid.contains ( ' . ' ) )
421421 {
422422 throw QgsRequestNotWellFormedException ( QStringLiteral ( " FEATUREID has to have TYPENAME in the values" ) );
423423 }
424424
425- QString typeName = fid.section ( QStringLiteral ( " . " ) , 0 , 0 );
426- fid = fid.section ( QStringLiteral ( " . " ) , 1 , 1 );
425+ QString typeName = fid.section ( ' . ' , 0 , 0 );
426+ fid = fid.section ( ' . ' , 1 , 1 );
427427 if ( !typeNameList.contains ( typeName ) )
428428 {
429429 typeNameList << typeName;
@@ -467,23 +467,23 @@ namespace QgsWfs
467467 {
468468 QStringList propertyList;
469469
470- QStringList attrList = propertyName.split ( QStringLiteral ( " , " ) );
470+ QStringList attrList = propertyName.split ( ' , ' );
471471 QStringList::const_iterator alstIt;
472472 for ( alstIt = attrList.begin (); alstIt != attrList.end (); ++alstIt )
473473 {
474474 QString fieldName = *alstIt;
475475 fieldName = fieldName.trimmed ();
476- if ( fieldName.contains ( QLatin1String ( " : " ) ) )
476+ if ( fieldName.contains ( ' : ' ) )
477477 {
478- fieldName = fieldName.section ( QStringLiteral ( " : " ) , 1 , 1 );
478+ fieldName = fieldName.section ( ' : ' , 1 , 1 );
479479 }
480- if ( fieldName.contains ( QLatin1String ( " / " ) ) )
480+ if ( fieldName.contains ( ' / ' ) )
481481 {
482- if ( fieldName.section ( QStringLiteral ( " / " ) , 0 , 0 ) != typeName )
482+ if ( fieldName.section ( ' / ' , 0 , 0 ) != typeName )
483483 {
484484 throw QgsRequestNotWellFormedException ( QStringLiteral ( " PropertyName text '%1' has to contain TypeName '%2'" ).arg ( fieldName ).arg ( typeName ) );
485485 }
486- fieldName = fieldName.section ( QStringLiteral ( " / " ) , 1 , 1 );
486+ fieldName = fieldName.section ( ' / ' , 1 , 1 );
487487 }
488488 propertyList.append ( fieldName );
489489 }
@@ -513,7 +513,7 @@ namespace QgsWfs
513513 throw QgsRequestNotWellFormedException ( QStringLiteral ( " TYPENAME is mandatory except if FEATUREID is used" ) );
514514 }
515515
516- typeNameList = parameters.value ( QStringLiteral ( " TYPENAME" ) ).split ( QStringLiteral ( " , " ) );
516+ typeNameList = parameters.value ( QStringLiteral ( " TYPENAME" ) ).split ( ' , ' );
517517 // Verifying the 1:1 mapping between TYPENAME and PROPERTYNAME
518518 if ( !propertyNameList.isEmpty () && typeNameList.size () != propertyNameList.size () )
519519 {
@@ -549,23 +549,23 @@ namespace QgsWfs
549549 {
550550 QStringList propertyList;
551551
552- QStringList attrList = propertyName.split ( QStringLiteral ( " , " ) );
552+ QStringList attrList = propertyName.split ( ' , ' );
553553 QStringList::const_iterator alstIt;
554554 for ( alstIt = attrList.begin (); alstIt != attrList.end (); ++alstIt )
555555 {
556556 QString fieldName = *alstIt;
557557 fieldName = fieldName.trimmed ();
558- if ( fieldName.contains ( QLatin1String ( " : " ) ) )
558+ if ( fieldName.contains ( ' : ' ) )
559559 {
560- fieldName = fieldName.section ( QStringLiteral ( " : " ) , 1 , 1 );
560+ fieldName = fieldName.section ( ' : ' , 1 , 1 );
561561 }
562- if ( fieldName.contains ( QLatin1String ( " / " ) ) )
562+ if ( fieldName.contains ( ' / ' ) )
563563 {
564- if ( fieldName.section ( QStringLiteral ( " / " ) , 0 , 0 ) != typeName )
564+ if ( fieldName.section ( ' / ' , 0 , 0 ) != typeName )
565565 {
566566 throw QgsRequestNotWellFormedException ( QStringLiteral ( " PropertyName text '%1' has to contain TypeName '%2'" ).arg ( fieldName ).arg ( typeName ) );
567567 }
568- fieldName = fieldName.section ( QStringLiteral ( " / " ) , 1 , 1 );
568+ fieldName = fieldName.section ( ' / ' , 1 , 1 );
569569 }
570570 propertyList.append ( fieldName );
571571 }
@@ -660,7 +660,7 @@ namespace QgsWfs
660660 bool ok;
661661 for ( int i = 0 ; i < 4 ; i++ )
662662 {
663- corners[i].replace ( QLatin1String ( " " ), QLatin1String ( " + " ) );
663+ corners[i].replace ( ' ' , ' + ' );
664664 d[i] = corners[i].toDouble ( &ok );
665665 if ( !ok )
666666 {
@@ -769,9 +769,9 @@ namespace QgsWfs
769769 getFeatureQuery parseQueryElement ( QDomElement &queryElem )
770770 {
771771 QString typeName = queryElem.attribute ( QStringLiteral ( " typeName" ), QLatin1String ( " " ) );
772- if ( typeName.contains ( QLatin1String ( " : " ) ) )
772+ if ( typeName.contains ( ' : ' ) )
773773 {
774- typeName = typeName.section ( QStringLiteral ( " : " ) , 1 , 1 );
774+ typeName = typeName.section ( ' : ' , 1 , 1 );
775775 }
776776
777777 QgsFeatureRequest featureRequest;
@@ -785,17 +785,17 @@ namespace QgsWfs
785785 if ( queryChildElem.tagName () == QLatin1String ( " PropertyName" ) )
786786 {
787787 QString fieldName = queryChildElem.text ().trimmed ();
788- if ( fieldName.contains ( QLatin1String ( " : " ) ) )
788+ if ( fieldName.contains ( ' : ' ) )
789789 {
790- fieldName = fieldName.section ( QStringLiteral ( " : " ) , 1 , 1 );
790+ fieldName = fieldName.section ( ' : ' , 1 , 1 );
791791 }
792- if ( fieldName.contains ( QLatin1String ( " / " ) ) )
792+ if ( fieldName.contains ( ' / ' ) )
793793 {
794- if ( fieldName.section ( QStringLiteral ( " / " ) , 0 , 0 ) != typeName )
794+ if ( fieldName.section ( ' / ' , 0 , 0 ) != typeName )
795795 {
796796 throw QgsRequestNotWellFormedException ( QStringLiteral ( " PropertyName text '%1' has to contain TypeName '%2'" ).arg ( fieldName ).arg ( typeName ) );
797797 }
798- fieldName = fieldName.section ( QStringLiteral ( " / " ) , 1 , 1 );
798+ fieldName = fieldName.section ( ' / ' , 1 , 1 );
799799 }
800800 propertyList.append ( fieldName );
801801 }
@@ -878,7 +878,7 @@ namespace QgsWfs
878878 query.removeAllQueryItems ( QStringLiteral ( " _DC" ) );
879879
880880 query.addQueryItem ( QStringLiteral ( " REQUEST" ), QStringLiteral ( " DescribeFeatureType" ) );
881- query.addQueryItem ( QStringLiteral ( " TYPENAME" ), typeNames.join ( QStringLiteral ( " , " ) ) );
881+ query.addQueryItem ( QStringLiteral ( " TYPENAME" ), typeNames.join ( ' , ' ) );
882882 query.addQueryItem ( QStringLiteral ( " OUTPUTFORMAT" ), QStringLiteral ( " XMLSCHEMA" ) );
883883
884884 mapUrl.setQuery ( query );
0 commit comments