warning: ignoring return value of function

CCMAIL:mart@kde.org
This commit is contained in:
Andre Woebbeking 2014-06-22 20:37:18 +02:00
parent 3152e678d9
commit 35ee077ee3

View File

@ -316,14 +316,12 @@ void StorageThread::expire(QWeakPointer<StorageJob> wcaller, const QVariantMap &
QSqlQuery query(m_db);
if (valueGroup.isEmpty()) {
query.prepare("delete from " + caller->clientName() + " where accessTime < :date");
QDateTime time(QDateTime::currentDateTime());
time.addSecs(-params["age"].toUInt());
QDateTime time(QDateTime::currentDateTime().addSecs(-params["age"].toUInt()));
query.bindValue(":date", time.toTime_t());
} else {
query.prepare("delete from " + caller->clientName() + " where valueGroup=:valueGroup and accessTime < :date");
query.bindValue(":valueGroup", valueGroup);
QDateTime time(QDateTime::currentDateTime());
time.addSecs(-params["age"].toUInt());
QDateTime time(QDateTime::currentDateTime().addSecs(-params["age"].toUInt()));
query.bindValue(":date", time.toTime_t());
}