From 98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:11:56 +0200 Subject: 3.17 --- ui/sorting.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui/sorting.h') diff --git a/ui/sorting.h b/ui/sorting.h index ce3e4648..52921f84 100644 --- a/ui/sorting.h +++ b/ui/sorting.h @@ -13,7 +13,7 @@ #include "../shared/assert_static.h" -namespace ffs3 +namespace zen { namespace { @@ -68,7 +68,7 @@ bool sortByFileName(const FileSystemObject& a, const FileSystemObject& b) if (isDirectoryMapping(a)) //sort directories by relative name { if (isDirectoryMapping(b)) - return cmpFileName(a.getRelativeName(), b.getRelativeName()) < 0; + return LessFilename()(a.getRelativeName(), b.getRelativeName()); else return false; } @@ -113,7 +113,7 @@ bool sortByRelativeName(const FileSystemObject& a, const FileSystemObject& b) else if (isDirectoryA) return true; - return cmpFileName(a.getShortName(), b.getShortName()) < 0; + return LessFilename()(a.getShortName(), b.getShortName()); } } @@ -172,8 +172,8 @@ bool sortByDate(const FileSystemObject& a, const FileSystemObject& b) else if (!fileObjB && !linkObjB) return true; //directories last - const wxLongLong& dateA = fileObjA ? fileObjA->getLastWriteTime() : linkObjA->getLastWriteTime(); - const wxLongLong& dateB = fileObjB ? fileObjB->getLastWriteTime() : linkObjB->getLastWriteTime(); + zen::Int64 dateA = fileObjA ? fileObjA->getLastWriteTime() : linkObjA->getLastWriteTime(); + zen::Int64 dateB = fileObjB ? fileObjB->getLastWriteTime() : linkObjB->getLastWriteTime(); //return list beginning with newest files first return Compare().isSmallerThan(dateA, dateB); -- cgit