mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-26 02:19:18 -04:00
Formatting
This commit is contained in:
parent
c14725cf97
commit
00d2b3f9b0
@ -245,9 +245,8 @@ int Entry::getPasswordAge() const
|
||||
// Found last change in history
|
||||
return curr->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime());
|
||||
}
|
||||
|
||||
}
|
||||
if (previous!=this) {
|
||||
if (previous != this) {
|
||||
// If no change in history, password is from oldest history entry.
|
||||
// Not using creation time here because that changes when an entry is cloned
|
||||
return previous->timeInfo().lastModificationTime().secsTo(Clock::currentDateTime());
|
||||
|
@ -78,7 +78,7 @@ void TestEntry::testGetPasswordAge()
|
||||
QCOMPARE(entry2->getPasswordAge(), 100);
|
||||
|
||||
entry2->addHistoryItem(historyEntry2);
|
||||
// History entry shows password is actually
|
||||
// History entry shows password is actually
|
||||
// 500 seconds older than the creation time
|
||||
QCOMPARE(entry2->getPasswordAge(), 600);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user