From 0afd3fae06d577b2f5a277597bd94d300b56e2b6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 11 Aug 2015 22:45:42 +0000 Subject: adaptation of UInfoEx for new functions git-svn-id: http://svn.miranda-ng.org/main/trunk@14919 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/classMTime.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/UserInfoEx/src/classMTime.cpp') diff --git a/plugins/UserInfoEx/src/classMTime.cpp b/plugins/UserInfoEx/src/classMTime.cpp index ac8eee269a..9a357172a3 100644 --- a/plugins/UserInfoEx/src/classMTime.cpp +++ b/plugins/UserInfoEx/src/classMTime.cpp @@ -38,19 +38,19 @@ MTime::MTime() ZeroDate(); } -MTime::MTime(SYSTEMTIME &st, const BYTE bIsLocal) +MTime::MTime(SYSTEMTIME &st, bool bIsLocal) { _SysTime = st; _isLocal = bIsLocal != FALSE; } -MTime::MTime(FILETIME &ft, const BYTE bIsLocal) +MTime::MTime(FILETIME &ft, bool bIsLocal) { ZeroDate(); Set(ft, bIsLocal); } -MTime::MTime(LARGE_INTEGER &li, const BYTE bIsLocal) +MTime::MTime(LARGE_INTEGER &li, bool bIsLocal) { ZeroDate(); Set(li, bIsLocal); @@ -405,14 +405,14 @@ void MTime::FromStampAsLocal(const DWORD dwTimeStamp) UTCToLocal(); } -void MTime::Set(LARGE_INTEGER liFileTime, const BYTE bIsLocal) +void MTime::Set(LARGE_INTEGER liFileTime, bool bIsLocal) { if (liFileTime.QuadPart < 0i64) liFileTime.QuadPart = 0; FileTimeToSystemTime((LPFILETIME)&liFileTime, &_SysTime); _isLocal = bIsLocal != FALSE; } -void MTime::Set(FILETIME &ftFileTime, const BYTE bIsLocal) +void MTime::Set(const FILETIME &ftFileTime, bool bIsLocal) { FileTimeToSystemTime(&ftFileTime, &_SysTime); _isLocal = bIsLocal != FALSE; @@ -423,7 +423,7 @@ void MTime::Set(const MTime &mt) Set(mt.SystemTime(), mt.IsLocal()); } -void MTime::Set(SYSTEMTIME &st, const BYTE bIsLocal) +void MTime::Set(const SYSTEMTIME &st, bool bIsLocal) { memcpy(&_SysTime, &st, sizeof(SYSTEMTIME)); _isLocal = bIsLocal != FALSE; -- cgit v1.2.3