From cddcd7483a7c472598af098e759e5d309024f606 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 20:31:39 +0300 Subject: DWORD -> uint32_t --- protocols/Twitter/src/chat.cpp | 6 +++--- protocols/Twitter/src/connection.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index f1e758a620..33bd77ad19 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -31,7 +31,7 @@ void CTwitterProto::UpdateChat(const twitter_user &update) gce.bIsMe = (update.username.c_str() == m_szUserName); gce.pszUID.a = update.username.c_str(); gce.pszText.a = chatText.c_str(); - gce.time = (DWORD)update.status.time; + gce.time = (uint32_t)update.status.time; MCONTACT hContact = UsernameToHContact(update.username.c_str()); ptrA szNick(db_get_utfa(hContact, "CList", "MyHandle")); @@ -77,7 +77,7 @@ void CTwitterProto::AddChatContact(const char *name, const char *nick) { GCEVENT gce = { m_szModuleName, m_szChatId, GC_EVENT_JOIN }; gce.dwFlags = GCEF_UTF8; - gce.time = DWORD(time(0)); + gce.time = uint32_t(time(0)); gce.pszNick.a = nick ? nick : name; gce.pszUID.a = name; gce.pszStatus.a = "Normal"; @@ -88,7 +88,7 @@ void CTwitterProto::DeleteChatContact(const char *name) { GCEVENT gce = { m_szModuleName, m_szChatId, GC_EVENT_PART }; gce.dwFlags = GCEF_UTF8; - gce.time = DWORD(time(0)); + gce.time = uint32_t(time(0)); gce.pszUID.a = gce.pszNick.a = name; Chat_Event(&gce); } diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 8cfcac110d..bfe15de33a 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -524,7 +524,7 @@ void CTwitterProto::UpdateStatuses(bool pre_read, bool popups, bool tweetToMsg) dbei.cbBlob = (int)u->status.text.length() + 1; dbei.eventType = TWITTER_DB_EVENT_TYPE_TWEET; dbei.flags = DBEF_UTF; - dbei.timestamp = static_cast(u->status.time); + dbei.timestamp = static_cast(u->status.time); dbei.szModule = m_szModuleName; db_event_add(hContact, &dbei); } @@ -596,7 +596,7 @@ void CTwitterProto::UpdateMessages(bool pre_read) if (bIsMe) recv.flags |= PREF_SENT; recv.szMessage = const_cast(text.c_str()); - recv.timestamp = static_cast(time); + recv.timestamp = static_cast(time); recv.szMsgId = msgid.c_str(); MEVENT hDbEVent = (MEVENT)ProtoChainRecvMsg(hContact, &recv); -- cgit v1.2.3