From 4ec2d5a489b922beb16fcd1cdf8199a862244ebb Mon Sep 17 00:00:00 2001 From: Sergio Ahumada <sergio.ahumada@nokia.com> Date: Sun, 9 Sep 2012 16:04:08 +0200 Subject: [PATCH] test: Check for null string comparison Do not compare a QString to QString(). Instead use the .isEmpty() method. Change-Id: I4ef0c050f97b2070ed13d89305ad894479e42dd6 Reviewed-by: Caroline Chao <caroline.chao@nokia.com> --- tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp index 5f280d152c..b901aeaf75 100644 --- a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp +++ b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp @@ -6088,7 +6088,7 @@ void tst_qquicktextinput::clearInputMask() QQuickTextInput *textInput = qobject_cast<QQuickTextInput*>(textInputComponent.create()); QVERIFY(textInput != 0); - QVERIFY(textInput->inputMask() != QString()); + QVERIFY(!textInput->inputMask().isEmpty()); textInput->setInputMask(QString()); QCOMPARE(textInput->inputMask(), QString()); } -- GitLab