Add some more asserts to make sure we only store UTC QDateTimes.

This commit is contained in:
Felix Geyer 2012-05-16 00:04:10 +02:00
parent fb5a5041d5
commit 5ef3cdb428
2 changed files with 7 additions and 0 deletions

View file

@ -129,6 +129,7 @@ QList<DeletedObject> Database::deletedObjects()
void Database::addDeletedObject(const DeletedObject& delObj)
{
Q_ASSERT(delObj.deletionTime.timeSpec() == Qt::UTC);
m_deletedObjects.append(delObj);
}