diff options
Diffstat (limited to 'protocols/Twitter/src')
| -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);
  | 
