Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2015-09-25 22:33:55 +0300
committerFelix Geyer <debfx@fobos.de>2015-09-25 22:34:56 +0300
commitbcb54bc38aa3392fa599cfc29f4ec84e4794bf35 (patch)
treec8b16ef1ba2974335520663a4f9530f2c43cf74d /tests/TestEntry.cpp
parent14aac093186ac5bd856ca610737acc88a9969602 (diff)
Avoid dereferencing QLists.
Diffstat (limited to 'tests/TestEntry.cpp')
-rw-r--r--tests/TestEntry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TestEntry.cpp b/tests/TestEntry.cpp
index 477e83b86..f918b6ccc 100644
--- a/tests/TestEntry.cpp
+++ b/tests/TestEntry.cpp
@@ -120,6 +120,6 @@ void TestEntry::testClone()
QCOMPARE(entryCloneNone->uuid(), entryOrg->uuid());
QCOMPARE(entryCloneHistory->title(), QString("New Title"));
QCOMPARE(entryCloneHistory->historyItems().size(), 1);
- QCOMPARE(entryCloneHistory->historyItems().first()->title(), QString("Original Title"));
+ QCOMPARE(entryCloneHistory->historyItems().at(0)->title(), QString("Original Title"));
QCOMPARE(entryCloneHistory->timeInfo().creationTime(), entryOrg->timeInfo().creationTime());
}