diff options
author | Felix Geyer <debfx@fobos.de> | 2015-09-25 22:33:55 +0300 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2015-09-25 22:34:56 +0300 |
commit | bcb54bc38aa3392fa599cfc29f4ec84e4794bf35 (patch) | |
tree | c8b16ef1ba2974335520663a4f9530f2c43cf74d /tests/TestEntry.cpp | |
parent | 14aac093186ac5bd856ca610737acc88a9969602 (diff) |
Avoid dereferencing QLists.
Diffstat (limited to 'tests/TestEntry.cpp')
-rw-r--r-- | tests/TestEntry.cpp | 2 |
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()); } |