summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/classMTime.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 20:31:39 +0300
commitcddcd7483a7c472598af098e759e5d309024f606 (patch)
treeb0a227d6e087c41958cc84d27bc323353248aae5 /plugins/UserInfoEx/src/classMTime.cpp
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/UserInfoEx/src/classMTime.cpp')
-rw-r--r--plugins/UserInfoEx/src/classMTime.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/UserInfoEx/src/classMTime.cpp b/plugins/UserInfoEx/src/classMTime.cpp
index e78d76192f..82394ad08a 100644
--- a/plugins/UserInfoEx/src/classMTime.cpp
+++ b/plugins/UserInfoEx/src/classMTime.cpp
@@ -56,7 +56,7 @@ MTime::MTime(LARGE_INTEGER &li, bool bIsLocal)
Set(li, bIsLocal);
}
-MTime::MTime(DWORD dwStamp)
+MTime::MTime(uint32_t dwStamp)
{
ZeroDate();
FromStampAsUTC(dwStamp);
@@ -93,7 +93,7 @@ uint8_t MTime::IsLeapYear() const
return (!(((_SysTime.wYear) % 4 != 0) || (((_SysTime.wYear) % 100 == 0) && ((_SysTime.wYear) % 400 != 0))));
}
-LONG MTime::Compare(const DWORD dwTimeStamp) const
+LONG MTime::Compare(const uint32_t dwTimeStamp) const
{
return (LONG)(TimeStamp() - dwTimeStamp);
}
@@ -266,7 +266,7 @@ FILETIME MTime::FileTime() const
return ftFileTime;
}
-DWORD MTime::TimeStamp() const
+uint32_t MTime::TimeStamp() const
{
LARGE_INTEGER li;
@@ -284,7 +284,7 @@ DWORD MTime::TimeStamp() const
if (li.QuadPart < 0)
return 0;
- return (DWORD)li.QuadPart;
+ return (uint32_t)li.QuadPart;
}
uint16_t MTime::DaysInMonth(const uint16_t &wMonth) const
@@ -392,14 +392,14 @@ uint16_t MTime::DateFormatLong(LPTSTR ptszTimeFormat, uint16_t cchTimeFormat)
* set class value
*********************************************/
-void MTime::FromStampAsUTC(const DWORD dwTimeStamp)
+void MTime::FromStampAsUTC(const uint32_t dwTimeStamp)
{
LARGE_INTEGER li;
li.QuadPart = (dwTimeStamp + 11644473600i64) * 10000000i64;
Set(li, FALSE);
}
-void MTime::FromStampAsLocal(const DWORD dwTimeStamp)
+void MTime::FromStampAsLocal(const uint32_t dwTimeStamp)
{
FromStampAsUTC(dwTimeStamp);
UTCToLocal();
@@ -463,7 +463,7 @@ int MTime::DBGetStamp (MCONTACT hContact, LPCSTR pszModule, LPCSTR pszSetting)
return 1;
}
- DWORD dwTimeStamp = db_get_dw(hContact, pszModule, pszSetting, 0);
+ uint32_t dwTimeStamp = db_get_dw(hContact, pszModule, pszSetting, 0);
if (dwTimeStamp == 0) {
ZeroDate();
return 1;