Properly initialize various attributes.

This commit is contained in:
Felix Geyer 2011-06-29 16:47:05 +02:00
parent c548c7f4b4
commit 5cb906c235
5 changed files with 26 additions and 0 deletions

View file

@ -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