mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-18 09:52:46 -05:00
Formatting
This commit is contained in:
parent
c14725cf97
commit
00d2b3f9b0
2 changed files with 2 additions and 3 deletions
|
|
@ -245,9 +245,8 @@ int Entry::getPasswordAge() const
|
||||||
// Found last change in history
|
// Found last change in history
|
||||||
return curr->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime());
|
return curr->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if (previous!=this) {
|
if (previous != this) {
|
||||||
// If no change in history, password is from oldest history entry.
|
// If no change in history, password is from oldest history entry.
|
||||||
// Not using creation time here because that changes when an entry is cloned
|
// Not using creation time here because that changes when an entry is cloned
|
||||||
return previous->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime());
|
return previous->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime());
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ void TestEntry::testGetPasswordAge()
|
||||||
QCOMPARE(entry2->getPasswordAge(), 100);
|
QCOMPARE(entry2->getPasswordAge(), 100);
|
||||||
|
|
||||||
entry2->addHistoryItem(historyEntry2);
|
entry2->addHistoryItem(historyEntry2);
|
||||||
// History entry shows password is actually
|
// History entry shows password is actually
|
||||||
// 500 seconds older than the creation time
|
// 500 seconds older than the creation time
|
||||||
QCOMPARE(entry2->getPasswordAge(), 600);
|
QCOMPARE(entry2->getPasswordAge(), 600);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue