summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/dialogs
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-17 15:52:53 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-21 09:58:23 +0100
commite8b4c49efddb87f4195c74668b5026119eccea56 (patch)
tree973f4539844b7ff0797bf7b7b1383c853dffda99 /tests/auto/widgets/dialogs
parented5583048ecf3d340ded7e4d5f1b926a9929eebd (diff)
qtbase tests: Fix some warnings
- Fix warnings about QAtomicPointer/Int usage - Fix some gcc 4.6 warnings about assigned/unused variables Change-Id: Ib4dbf9110f0dad93ad48e97278310f05fad3a82a Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests/auto/widgets/dialogs')
-rw-r--r--tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp2
-rw-r--r--tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
index 483841e8f5..bdc760926b 100644
--- a/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
+++ b/tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
@@ -517,11 +517,9 @@ void tst_QFiledialog::completer()
if (!fullPath.endsWith(QLatin1Char('/')))
fullPath.append(QLatin1Char('/'));
fullPath.append(input);
- bool inputStartsWithRootPath = false;
if (input.startsWith(QDir::rootPath())) {
fullPath = input;
input.clear();
- inputStartsWithRootPath = true;
}
QFileInfo fi(fullPath);
diff --git a/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp b/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
index 3bf618b679..f195017dc4 100644
--- a/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
+++ b/tests/auto/widgets/dialogs/qmessagebox/tst_qmessagebox.cpp
@@ -522,6 +522,7 @@ void tst_QMessageBox::testSymbols()
button = QMessageBox::Default;
button = QMessageBox::Escape;
button = QMessageBox::FlagMask;
+ QVERIFY(button);
const QString text = QStringLiteral("Foo");
mb1.setText(text);