Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 17e1245b authored by Laurent Montel's avatar Laurent Montel 😁

Don't use nullptr here

parent efdc0556
......@@ -96,11 +96,11 @@ void ExpireJob::execute()
if (unreadDays > 0) {
qCDebug(MAILCOMMON_LOG) << "ExpireJob: deleting unread older than" << unreadDays << "days";
mMaxUnreadTime = time(nullptr) - unreadDays * 3600 * 24;
mMaxUnreadTime = time(0) - unreadDays * 3600 * 24;
}
if (readDays > 0) {
qCDebug(MAILCOMMON_LOG) << "ExpireJob: deleting read older than" << readDays << "days";
mMaxReadTime = time(nullptr) - readDays * 3600 * 24;
mMaxReadTime = time(0) - readDays * 3600 * 24;
}
if ((mMaxUnreadTime == 0) && (mMaxReadTime == 0)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment