From eccbb5307a048e70ac4adb0d3fd333be28245fa8 Mon Sep 17 00:00:00 2001
From: George Hazan <ghazan@miranda.im>
Date: Tue, 28 Mar 2017 14:21:33 +0300
Subject: massive cleanup of useless cbSize fields

---
 protocols/VKontakte/src/misc.cpp     |  1 -
 protocols/VKontakte/src/vk_chats.cpp | 10 ----------
 2 files changed, 11 deletions(-)

(limited to 'protocols/VKontakte/src')

diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 3ae47bcf21..975e3c141a 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -737,7 +737,6 @@ void CVkProto::SetSrmmReadStatus(MCONTACT hContact)
 	_free_locale(locale);
 
 	StatusTextData st = { 0 };
-	st.cbSize = sizeof(st);
 	st.hIcon = IcoLib_GetIconByHandle(GetIconHandle(IDI_READMSG));
 	mir_snwprintf(st.tszText, TranslateT("Message read: %s"), ttime);
 	CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hContact, (LPARAM)&st);
diff --git a/protocols/VKontakte/src/vk_chats.cpp b/protocols/VKontakte/src/vk_chats.cpp
index 484602e265..725e48d25f 100644
--- a/protocols/VKontakte/src/vk_chats.cpp
+++ b/protocols/VKontakte/src/vk_chats.cpp
@@ -842,9 +842,7 @@ void CVkProto::ChatContactTypingThread(void *p)
 		m_ChatsTyping.insert(param);
 		
 		StatusTextData st = { 0 };
-		st.cbSize = sizeof(st);
 		mir_snwprintf(st.tszText, TranslateT("%s is typing a message..."), cu->m_wszNick);
-
 		CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, (LPARAM)&st);
 	}
 
@@ -874,18 +872,10 @@ void CVkProto::StopChatContactTyping(int iChatId, int iUserId)
 		m_ChatsTyping.remove(cp);
 
 		StatusTextData st = { 0 };
-		st.cbSize = sizeof(st);
 		mir_snwprintf(st.tszText, L" ");
-		
-		// CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, NULL) clears statusbar very slowly. 
-		// (1-10 sec(!!!) for me on tabSRMM O_o)
-		// So I call MS_MSG_SETSTATUSTEXT with st.wszText = " " for cleaning of "... is typing a message..." string.
-		// It works instantly!
-		
 		CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact, (LPARAM)&st);
 				
 		// After that I call standard cleaning procedure:
-
 		CallService(MS_MSG_SETSTATUSTEXT, (WPARAM)hChatContact);
 	}
 }
-- 
cgit v1.2.3