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>2011-06-29 18:47:05 +0400
committerFelix Geyer <debfx@fobos.de>2011-06-29 18:47:05 +0400
commit5cb906c235217e998e09c6ec582e1b877ef32272 (patch)
treecd63eec8e91ddbf20a93bca597b00cce2d312961 /src/core/TimeInfo.cpp
parentc548c7f4b4565c39a5cd14048c2057f80c775755 (diff)
Properly initialize various attributes.
Diffstat (limited to 'src/core/TimeInfo.cpp')
-rw-r--r--src/core/TimeInfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/TimeInfo.cpp b/src/core/TimeInfo.cpp
index 477543952..d5bf1fb8c 100644
--- a/src/core/TimeInfo.cpp
+++ b/src/core/TimeInfo.cpp
@@ -20,6 +20,14 @@
TimeInfo::TimeInfo()
{
m_expires = false;
+ m_usageCount = 0; // TODO ???
+
+ QDateTime now = QDateTime::currentDateTime();
+ m_lastModificationTime = now;
+ m_creationTime = now;
+ m_lastAccessTime = now;
+ m_expiryTime = now;
+ m_locationChanged = now;
}
QDateTime TimeInfo::lastModificationTime() const