@@ -47,9 +47,9 @@ void TestQgsMapToolReshape::initTestCase()
47
47
QgsApplication::initQgis ();
48
48
49
49
// 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" );
53
53
54
54
QgsApplication::showSettings ();
55
55
@@ -76,7 +76,7 @@ void TestQgsMapToolReshape::cleanup()
76
76
void TestQgsMapToolReshape::reshapeWithBindingLine ()
77
77
{
78
78
// 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" );
80
80
81
81
QgsGeometry *g0 = QgsGeometry::fromWkt ( " LineString (0 0, 1 1, 1 2)" );
82
82
QgsFeature f0;
@@ -116,10 +116,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
116
116
tool0.reshape ( vl );
117
117
118
118
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)" ) );
120
120
121
121
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)" ) );
123
123
124
124
vl->rollBack ();
125
125
@@ -138,10 +138,10 @@ void TestQgsMapToolReshape::reshapeWithBindingLine()
138
138
tool1.reshape ( vl );
139
139
140
140
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)" ) );
142
142
143
143
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)" ) );
145
145
146
146
vl->rollBack ();
147
147
}
0 commit comments