@@ -48,7 +48,7 @@ class TestTransformer : public QgsPropertyTransformer
48
48
{
49
49
return new TestTransformer ( mMinValue , mMaxValue );
50
50
}
51
- virtual QString toExpression ( const QString& ) const override { return QStringLiteral (); }
51
+ virtual QString toExpression ( const QString& ) const override { return QString (); }
52
52
53
53
private:
54
54
@@ -104,10 +104,10 @@ void TestQgsProperty::initTestCase()
104
104
{
105
105
QgsApplication::init ();
106
106
QgsApplication::initQgis ();
107
- mDefinitions .insert ( Property1, QgsPropertyDefinition ( " p1" , QgsPropertyDefinition::DataTypeString, QStringLiteral (), QStringLiteral () ) );
108
- mDefinitions .insert ( Property2, QgsPropertyDefinition ( " p2" , QgsPropertyDefinition::DataTypeString, QStringLiteral (), QStringLiteral () ) );
109
- mDefinitions .insert ( Property3, QgsPropertyDefinition ( " p3" , QgsPropertyDefinition::DataTypeString, QStringLiteral (), QStringLiteral () ) );
110
- mDefinitions .insert ( Property4, QgsPropertyDefinition ( " p4" , QgsPropertyDefinition::DataTypeString, QStringLiteral (), QStringLiteral () ) );
107
+ mDefinitions .insert ( Property1, QgsPropertyDefinition ( " p1" , QgsPropertyDefinition::DataTypeString, QString (), QString () ) );
108
+ mDefinitions .insert ( Property2, QgsPropertyDefinition ( " p2" , QgsPropertyDefinition::DataTypeString, QString (), QString () ) );
109
+ mDefinitions .insert ( Property3, QgsPropertyDefinition ( " p3" , QgsPropertyDefinition::DataTypeString, QString (), QString () ) );
110
+ mDefinitions .insert ( Property4, QgsPropertyDefinition ( " p4" , QgsPropertyDefinition::DataTypeString, QString (), QString () ) );
111
111
}
112
112
113
113
void TestQgsProperty::cleanupTestCase ()
@@ -388,7 +388,7 @@ void TestQgsProperty::fieldBasedProperty()
388
388
property.setField ( " bad_field" );
389
389
QCOMPARE ( property.value ( context, -1 ).toInt (), -1 );
390
390
// unset field name
391
- QgsProperty defaultProperty = QgsProperty::fromField ( QStringLiteral () );
391
+ QgsProperty defaultProperty = QgsProperty::fromField ( QString () );
392
392
QCOMPARE ( defaultProperty.value ( context, -1 ).toInt (), -1 );
393
393
QVERIFY ( defaultProperty.referencedFields ( context ).isEmpty () );
394
394
defaultProperty.setActive ( true );
@@ -493,7 +493,7 @@ void TestQgsProperty::expressionBasedProperty()
493
493
QCOMPARE ( property.value ( context, -1 ).toInt (), -1 );
494
494
QVERIFY ( property.referencedFields ( context ).isEmpty () );
495
495
// unset expression
496
- QgsProperty defaultProperty = QgsProperty::fromExpression ( QStringLiteral () );
496
+ QgsProperty defaultProperty = QgsProperty::fromExpression ( QString () );
497
497
QCOMPARE ( defaultProperty.value ( context, -1 ).toInt (), -1 );
498
498
QVERIFY ( defaultProperty.referencedFields ( context ).isEmpty () );
499
499
defaultProperty.setActive ( true );
0 commit comments