diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 20:31:39 +0300 |
commit | cddcd7483a7c472598af098e759e5d309024f606 (patch) | |
tree | b0a227d6e087c41958cc84d27bc323353248aae5 /protocols/Twitter | |
parent | 1039b2829a264280493ba0fa979214fe024dc70c (diff) |
DWORD -> uint32_t
Diffstat (limited to 'protocols/Twitter')
-rw-r--r-- | protocols/Twitter/src/chat.cpp | 6 | ||||
-rw-r--r-- | protocols/Twitter/src/connection.cpp | 4 |
2 files changed, 5 insertions, 5 deletions
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<DWORD>(u->status.time);
+ dbei.timestamp = static_cast<uint32_t>(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<char*>(text.c_str());
- recv.timestamp = static_cast<DWORD>(time);
+ recv.timestamp = static_cast<uint32_t>(time);
recv.szMsgId = msgid.c_str();
MEVENT hDbEVent = (MEVENT)ProtoChainRecvMsg(hContact, &recv);
|