mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-06 13:34:16 -04:00
Avoid dereferencing QLists.
This commit is contained in:
parent
14aac09318
commit
bcb54bc38a
6 changed files with 9 additions and 9 deletions
|
@ -60,19 +60,19 @@ void TestExporter::testToDbExporter()
|
|||
Database* dbExp = ToDbExporter().exportGroup(groupOrg);
|
||||
|
||||
QCOMPARE(dbExp->rootGroup()->children().size(), 1);
|
||||
Group* groupExp = dbExp->rootGroup()->children().first();
|
||||
Group* groupExp = dbExp->rootGroup()->children().at(0);
|
||||
QVERIFY(groupExp != groupOrg);
|
||||
QCOMPARE(groupExp->name(), groupOrg->name());
|
||||
QCOMPARE(groupExp->entries().size(), 1);
|
||||
|
||||
Entry* entryExp = groupExp->entries().first();
|
||||
Entry* entryExp = groupExp->entries().at(0);
|
||||
QCOMPARE(entryExp->title(), entryOrg->title());
|
||||
QCOMPARE(dbExp->metadata()->customIcons().size(), 1);
|
||||
QVERIFY(dbExp->metadata()->containsCustomIcon(iconUuid));
|
||||
QCOMPARE(entryExp->iconNumber(), entryOrg->iconNumber());
|
||||
|
||||
QCOMPARE(entryExp->historyItems().size(), 1);
|
||||
QCOMPARE(entryExp->historyItems().first()->iconUuid(), iconUuid);
|
||||
QCOMPARE(entryExp->historyItems().at(0)->iconUuid(), iconUuid);
|
||||
|
||||
delete dbOrg;
|
||||
delete dbExp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue