summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/utils.h
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/HistoryStats/src/utils.h
parent1039b2829a264280493ba0fa979214fe024dc70c (diff)
DWORD -> uint32_t
Diffstat (limited to 'plugins/HistoryStats/src/utils.h')
-rw-r--r--plugins/HistoryStats/src/utils.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/HistoryStats/src/utils.h b/plugins/HistoryStats/src/utils.h
index 7e07ba6cbb..ad1e0afc70 100644
--- a/plugins/HistoryStats/src/utils.h
+++ b/plugins/HistoryStats/src/utils.h
@@ -9,11 +9,11 @@ namespace utils
// time formatting
ext::string timestampToString(time_t value, const wchar_t* format);
ext::string tmStructToString(const tm& value, const wchar_t* format);
- inline ext::string timestampToDateTime(DWORD value) { return timestampToString(value, L"%c"); }
- inline ext::string timestampToDate(DWORD value) { return timestampToString(value, L"%x"); }
- inline ext::string timestampToTime(DWORD value) { return timestampToString(value, L"%X"); }
- ext::string durationToString(DWORD value);
- DWORD parseDate(const ext::string& date);
+ inline ext::string timestampToDateTime(uint32_t value) { return timestampToString(value, L"%c"); }
+ inline ext::string timestampToDate(uint32_t value) { return timestampToString(value, L"%x"); }
+ inline ext::string timestampToTime(uint32_t value) { return timestampToString(value, L"%X"); }
+ ext::string durationToString(uint32_t value);
+ uint32_t parseDate(const ext::string& date);
inline ext::string formatDate(time_t timeValue) { return timestampToString(timeValue, L"%Y-%m-%d"); }
// number formatting
@@ -39,8 +39,8 @@ namespace utils
ext::string toUpperCase(const ext::string& text);
// version conversion
- DWORD dottedToVersion(ext::string version);
- ext::string versionToDotted(DWORD version);
+ uint32_t dottedToVersion(ext::string version);
+ ext::string versionToDotted(uint32_t version);
// character conversion (wide, ansi, utf8)
ext::a::string convertWToA(const wchar_t* str, size_t len);