summaryrefslogtreecommitdiffstats
path: root/tests/auto/ui/tst_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/ui/tst_ui.cpp')
-rw-r--r--tests/auto/ui/tst_ui.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/ui/tst_ui.cpp b/tests/auto/ui/tst_ui.cpp
index 065a2143..ae05fac7 100644
--- a/tests/auto/ui/tst_ui.cpp
+++ b/tests/auto/ui/tst_ui.cpp
@@ -20,40 +20,40 @@ private Q_SLOTS:
*/
void tst_ui::contentRemainsSame() {
QScopedPointer<PasswordDialog> d(
- new PasswordDialog(PasswordConfiguration{}, NULL));
+ new PasswordDialog(PasswordConfiguration{}, nullptr));
d->setTemplate("", false);
QString input = "pw\n";
d->setPass(input);
QCOMPARE(d->getPassword(), input);
- d.reset(new PasswordDialog(PasswordConfiguration{}, NULL));
+ d.reset(new PasswordDialog(PasswordConfiguration{}, nullptr));
input = "pw\nname: value\n";
d->setPass(input);
QCOMPARE(d->getPassword(), input);
- d.reset(new PasswordDialog(PasswordConfiguration{}, NULL));
+ d.reset(new PasswordDialog(PasswordConfiguration{}, nullptr));
d->setTemplate("name", false);
d->setPass(input);
QCOMPARE(d->getPassword(), input);
- d.reset(new PasswordDialog(PasswordConfiguration{}, NULL));
+ d.reset(new PasswordDialog(PasswordConfiguration{}, nullptr));
d->setTemplate("name", true);
d->setPass(input);
QCOMPARE(d->getPassword(), input);
- d.reset(new PasswordDialog(PasswordConfiguration{}, NULL));
+ d.reset(new PasswordDialog(PasswordConfiguration{}, nullptr));
d->setTemplate("", false);
d->templateAll(true);
d->setPass(input);
QCOMPARE(d->getPassword(), input);
- d.reset(new PasswordDialog(PasswordConfiguration{}, NULL));
+ d.reset(new PasswordDialog(PasswordConfiguration{}, nullptr));
d->setTemplate("", true);
d->templateAll(true);
d->setPass(input);
QCOMPARE(d->getPassword(), input);
- d.reset(new PasswordDialog(PasswordConfiguration{}, NULL));
+ d.reset(new PasswordDialog(PasswordConfiguration{}, nullptr));
d->setTemplate("name", true);
d->templateAll(true);
d->setPass(input);