summaryrefslogtreecommitdiff
path: root/library/cmp_filetime.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:56 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:11:56 +0200
commit98ecf620f7de377dc8ae9ad7fbd1e3b24477e138 (patch)
treefaadc6d8822c20cd3bc6f50b2a98e6c580585949 /library/cmp_filetime.h
parent3.16 (diff)
downloadFreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.gz
FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.tar.bz2
FreeFileSync-98ecf620f7de377dc8ae9ad7fbd1e3b24477e138.zip
3.17
Diffstat (limited to 'library/cmp_filetime.h')
-rw-r--r--library/cmp_filetime.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/library/cmp_filetime.h b/library/cmp_filetime.h
index b95eae5f..24b331c6 100644
--- a/library/cmp_filetime.h
+++ b/library/cmp_filetime.h
@@ -1,28 +1,26 @@
#ifndef CMP_FILETIME_H_INCLUDED
#define CMP_FILETIME_H_INCLUDED
-#include <wx/longlong.h>
#include <wx/stopwatch.h>
+#include "../shared/int64.h"
-
-namespace ffs3
+namespace zen
{
//---------------------------------------------------------------------------------------------------------------
inline
-bool sameFileTime(const wxLongLong& a, const wxLongLong& b, size_t tolerance)
+bool sameFileTime(const Int64& a, const Int64& b, size_t tolerance)
{
if (a < b)
- return b <= a + tolerance;
+ return b <= a + static_cast<int>(tolerance);
else
- return a <= b + tolerance;
+ return a <= b + static_cast<int>(tolerance);
}
//---------------------------------------------------------------------------------------------------------------
class CmpFileTime
{
public:
- CmpFileTime(size_t tolerance) :
- tolerance_(tolerance) {}
+ CmpFileTime(size_t tolerance) : tolerance_(tolerance) {}
enum Result
{
@@ -33,7 +31,7 @@ public:
TIME_RIGHT_INVALID
};
- Result getResult(const wxLongLong& lhs, const wxLongLong& rhs) const
+ Result getResult(const Int64& lhs, const Int64& rhs) const
{
if (lhs == rhs)
return TIME_EQUAL;
bgstack15