Skip to content

Commit b06f99b

Browse files
committedDec 19, 2017
2.18 also uses Qt4 which doesn't have QStringLiteral (followup a122e02 and c71e550)
1 parent a122e02 commit b06f99b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎tests/src/app/testqgsmaptoolreshape.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ void TestQgsMapToolReshape::initTestCase()
4747
QgsApplication::initQgis();
4848

4949
// Set up the QgsSettings environment
50-
QCoreApplication::setOrganizationName( QStringLiteral( "QGIS" ) );
51-
QCoreApplication::setOrganizationDomain( QStringLiteral( "qgis.org" ) );
52-
QCoreApplication::setApplicationName( QStringLiteral( "QGIS-TEST" ) );
50+
QCoreApplication::setOrganizationName( "QGIS" );
51+
QCoreApplication::setOrganizationDomain( "qgis.org" );
52+
QCoreApplication::setApplicationName( "QGIS-TEST" );
5353

5454
QgsApplication::showSettings();
5555

@@ -76,7 +76,7 @@ void TestQgsMapToolReshape::cleanup()
7676
void TestQgsMapToolReshape::reshapeWithBindingLine()
7777
{
7878
// prepare vector layer
79-
QgsVectorLayer *vl = new QgsVectorLayer( QStringLiteral( "LineString?crs=epsg:4326&field=name:string(20)" ), QStringLiteral( "vl" ), QStringLiteral( "memory" ) );
79+
QgsVectorLayer *vl = new QgsVectorLayer( "LineString?crs=epsg:4326&field=name:string(20)", "vl", "memory" );
8080

8181
QgsGeometry *g0 = QgsGeometry::fromWkt( "LineString (0 0, 1 1, 1 2)" );
8282
QgsFeature f0;
@@ -116,10 +116,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
116116
tool0.reshape( vl );
117117

118118
vl->getFeatures( QgsFeatureRequest().setFilterFid( 1 ) ).nextFeature( f0 );
119-
QCOMPARE( f0.geometry()->exportToWkt(), QStringLiteral( "LineString (0 0, 1 1, 1 2, 2 1)" ) );
119+
QCOMPARE( f0.geometry()->exportToWkt(), QString( "LineString (0 0, 1 1, 1 2, 2 1)" ) );
120120

121121
vl->getFeatures( QgsFeatureRequest().setFilterFid( 2 ) ).nextFeature( f1 );
122-
QCOMPARE( f1.geometry()->exportToWkt(), QStringLiteral( "LineString (2 1, 3 2, 3 3, 2 2)" ) );
122+
QCOMPARE( f1.geometry()->exportToWkt(), QString( "LineString (2 1, 3 2, 3 3, 2 2)" ) );
123123

124124
vl->rollBack();
125125

@@ -138,10 +138,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
138138
tool1.reshape( vl );
139139

140140
vl->getFeatures( QgsFeatureRequest().setFilterFid( 1 ) ).nextFeature( f0 );
141-
QCOMPARE( f0.geometry()->exportToWkt(), QStringLiteral( "LineString (0 0, 1 1, 1 2)" ) );
141+
QCOMPARE( f0.geometry()->exportToWkt(), QString( "LineString (0 0, 1 1, 1 2)" ) );
142142

143143
vl->getFeatures( QgsFeatureRequest().setFilterFid( 2 ) ).nextFeature( f1 );
144-
QCOMPARE( f1.geometry()->exportToWkt(), QStringLiteral( "LineString (1 2, 2 1, 3 2, 3 3, 2 2)" ) );
144+
QCOMPARE( f1.geometry()->exportToWkt(), QString( "LineString (1 2, 2 1, 3 2, 3 3, 2 2)" ) );
145145

146146
vl->rollBack();
147147
}

0 commit comments

Comments
 (0)
Please sign in to comment.