summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/stdafx.h
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-11-04 22:42:01 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-11-04 22:42:01 +0000
commit2c54d6e129aa0810010d1a2c004e63057b80fbf8 (patch)
tree92d9d40bf3c57c2a56ab54c15e8a7c58d6bbc9a5 /protocols/MSN/src/stdafx.h
parentcbaa677e46060e481d688884de85bfe7babe5dcd (diff)
MSN:
- minor cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@15686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/stdafx.h')
-rw-r--r--protocols/MSN/src/stdafx.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/protocols/MSN/src/stdafx.h b/protocols/MSN/src/stdafx.h
index 78de164fec..0bece806b7 100644
--- a/protocols/MSN/src/stdafx.h
+++ b/protocols/MSN/src/stdafx.h
@@ -680,7 +680,6 @@ struct MsgQueueEntry
/////////////////////////////////////////////////////////////////////////////////////////
// Avatars' queue
-
struct AvatarQueueEntry
{
MCONTACT hContact;
@@ -763,7 +762,9 @@ struct MsnPlace
unsigned p2pMsgId;
unsigned short p2pPktNum;
- ~MsnPlace() { mir_free(id); }
+ ~MsnPlace() {
+ mir_free(id);
+ }
};
struct MsnContact
@@ -780,8 +781,16 @@ struct MsnContact
OBJLIST<MsnPlace> places;
- MsnContact() : places(1, CompareId) {}
- ~MsnContact() { mir_free(email); mir_free(nick); mir_free(invite); }
+ MsnContact() : email(0), invite(0), nick(0),
+ hContact(0), list(0), netId(0), p2pMsgId(0),
+ cap1(0), cap2(0), places(1, CompareId) {
+ }
+
+ ~MsnContact() {
+ mir_free(email);
+ mir_free(nick);
+ mir_free(invite);
+ }
};
#define cap_OnlineViaMobile 0x00000001
@@ -882,9 +891,7 @@ struct MsnContact
#define LIST_REMOVE 0x0100
#define LIST_REMOVENH 0x0300
-/////////////////////////////////////////////////////////////////////////////////////////
// MSN plugin options
-
typedef struct _tag_MYOPTIONS
{
bool EnableSounds;
@@ -900,9 +907,7 @@ typedef struct _tag_MYOPTIONS
}
MYOPTIONS;
-/////////////////////////////////////////////////////////////////////////////////////////
// Windows error class
-
struct TWinErrorCode
{
WINAPI TWinErrorCode();
@@ -1029,8 +1034,9 @@ struct InviteChatParam
InviteChatParam(const TCHAR* id, MCONTACT hContact, CMsnProto* ppro)
: id(mir_tstrdup(id)), hContact(hContact), ppro(ppro) {}
- ~InviteChatParam()
- { mir_free(id); }
+ ~InviteChatParam() {
+ mir_free(id);
+ }
};
INT_PTR CALLBACK DlgInviteToChat(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); \ No newline at end of file