summaryrefslogtreecommitdiff
path: root/include/m_timezones.h
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 15:32:06 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-02-24 18:20:46 +0100
commit1c0172cca4f1e90679321912e20436a7f42f122d (patch)
tree77a544d2c09332ec176f42ebcf58a40d9c5d2b93 /include/m_timezones.h
parentdff565f40105b20b0e8e4dba1f48ccc9b8e7ff44 (diff)
more nullptr
Diffstat (limited to 'include/m_timezones.h')
-rw-r--r--include/m_timezones.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/m_timezones.h b/include/m_timezones.h
index a45471fa7a..57ff780cd6 100644
--- a/include/m_timezones.h
+++ b/include/m_timezones.h
@@ -64,27 +64,27 @@ EXTERN_C MIR_CORE_DLL(LPCTSTR) TimeZone_GetDescription(LPCTSTR TZname);
__forceinline int printDateTimeByContact (MCONTACT hContact, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags)
{
- return TimeZone_PrintDateTime(TimeZone_CreateByContact(hContact, 0, dwFlags), szFormat, szDest, cbDest, dwFlags);
+ return TimeZone_PrintDateTime(TimeZone_CreateByContact(hContact, nullptr, dwFlags), szFormat, szDest, cbDest, dwFlags);
}
__forceinline int printTimeStampByContact(MCONTACT hContact, mir_time ts, LPCTSTR szFormat, LPTSTR szDest, int cbDest, DWORD dwFlags)
{
- return TimeZone_PrintTimeStamp(TimeZone_CreateByContact(hContact, 0, dwFlags), ts, szFormat, szDest, cbDest, dwFlags);
+ return TimeZone_PrintTimeStamp(TimeZone_CreateByContact(hContact, nullptr, dwFlags), ts, szFormat, szDest, cbDest, dwFlags);
}
__forceinline LPTIME_ZONE_INFORMATION getTziByContact(MCONTACT hContact)
{
- return TimeZone_GetInfo(TimeZone_CreateByContact(hContact, 0, 0));
+ return TimeZone_GetInfo(TimeZone_CreateByContact(hContact, nullptr, 0));
}
__forceinline int getTimeZoneTimeByContact(MCONTACT hContact, SYSTEMTIME *st)
{
- return TimeZone_GetTimeZoneTime(TimeZone_CreateByContact(hContact, 0, 0), st);
+ return TimeZone_GetTimeZoneTime(TimeZone_CreateByContact(hContact, nullptr, 0), st);
}
__forceinline mir_time timeStampToTimeZoneTimeStampByContact(MCONTACT hContact, mir_time ts)
{
- return TimeZone_UtcToLocal(TimeZone_CreateByContact(hContact, 0, 0), ts);
+ return TimeZone_UtcToLocal(TimeZone_CreateByContact(hContact, nullptr, 0), ts);
}
#endif