diff --git a/src/gui/qgsattributeform.cpp b/src/gui/qgsattributeform.cpp index 31b4188b3f0..57910adaaf4 100644 --- a/src/gui/qgsattributeform.cpp +++ b/src/gui/qgsattributeform.cpp @@ -901,7 +901,7 @@ void QgsAttributeForm::onConstraintStatusChanged( const QString& constraint, if ( !ok ) { // not good - buddy->setText( QStringLiteral( "%1" ).arg( text ) ); + buddy->setText( QStringLiteral( "%1" ).arg( text ) ); } else { diff --git a/tests/src/gui/testqgsattributeform.cpp b/tests/src/gui/testqgsattributeform.cpp index 2dd008c780b..c8f07ada49d 100644 --- a/tests/src/gui/testqgsattributeform.cpp +++ b/tests/src/gui/testqgsattributeform.cpp @@ -79,7 +79,7 @@ void TestQgsAttributeForm::testFieldConstraint() // testing stuff QString validLabel = QStringLiteral( "col0" ); - QString invalidLabel = QStringLiteral( "col0" ); + QString invalidLabel = QStringLiteral( "col0" ); // set constraint layer->setConstraintExpression( 0, QString() ); @@ -145,7 +145,7 @@ void TestQgsAttributeForm::testFieldMultiConstraints() // testing stuff QSignalSpy spy( &form, SIGNAL( attributeChanged( QString, QVariant ) ) ); QString val = QStringLiteral( "" ); - QString inv = QStringLiteral( "" ); + QString inv = QStringLiteral( "" ); // get wrappers for each widget QgsEditorWidgetWrapper *ww0, *ww1, *ww2, *ww3;