diff options
author | Felix Geyer <debfx@fobos.de> | 2011-06-29 18:47:05 +0400 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2011-06-29 18:47:05 +0400 |
commit | 5cb906c235217e998e09c6ec582e1b877ef32272 (patch) | |
tree | cd63eec8e91ddbf20a93bca597b00cce2d312961 /src/core/TimeInfo.cpp | |
parent | c548c7f4b4565c39a5cd14048c2057f80c775755 (diff) |
Properly initialize various attributes.
Diffstat (limited to 'src/core/TimeInfo.cpp')
-rw-r--r-- | src/core/TimeInfo.cpp | 8 |
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 |