Compile (KDateTime simplifications)

svn path=/trunk/KDE/kdebase/apps/; revision=692606
This commit is contained in:
Jure Repinc 2007-07-26 00:26:02 +00:00
parent 52b162b242
commit 2bd3a4b8c4

View file

@ -120,9 +120,8 @@ bool DolphinSortFilterProxyModel::lessThanGeneralPurpose(const QModelIndex &left
return leftFileItem->isDir() && !rightFileItem->isDir();
case DolphinView::SortByDate: {
KDateTime leftTime, rightTime;
leftTime.setTime_t(leftFileItem->time(KFileItem::ModificationTime));
rightTime.setTime_t(rightFileItem->time(KFileItem::ModificationTime));
KDateTime leftTime = leftFileItem->time(KFileItem::ModificationTime);
KDateTime rightTime = rightFileItem->time(KFileItem::ModificationTime);
return leftTime > rightTime;
}