From ffeae3b58ae49397f62cb733c77f565ac4070223 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2012 18:24:10 +0000 Subject: various code cleaning considering protocols' declarations git-svn-id: http://svn.miranda-ng.org/main/trunk@2509 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MetaContacts/src/meta_main.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'plugins/MetaContacts/src') diff --git a/plugins/MetaContacts/src/meta_main.cpp b/plugins/MetaContacts/src/meta_main.cpp index f307d800b6..9e04413983 100644 --- a/plugins/MetaContacts/src/meta_main.cpp +++ b/plugins/MetaContacts/src/meta_main.cpp @@ -150,9 +150,7 @@ BOOL IsUnicodeOS() */ extern "C" __declspec(dllexport) int Load(void) { - PROTOCOLDESCRIPTOR pd; DBVARIANT dbv; - mir_getLP(&pluginInfo); @@ -184,7 +182,6 @@ extern "C" __declspec(dllexport) int Load(void) DBWriteContactSettingDword(hContact, META_PROTO, "Default", DBGetContactSettingDword(hContact, META_PROTO, "SavedDefault", 0)); DBWriteContactSettingDword(hContact, META_PROTO, "SavedDefault", (DWORD)-1); } - } DBFreeVariant(&dbv); } @@ -222,17 +219,12 @@ extern "C" __declspec(dllexport) int Load(void) DBFreeVariant(&dbv); } - ZeroMemory(&pd,sizeof(pd)); - pd.cbSize=PROTOCOLDESCRIPTOR_V3_SIZE;//sizeof(pd); - - pd.szName=META_FILTER; - pd.type=PROTOTYPE_FILTER; + PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE }; + pd.szName = META_FILTER; + pd.type = PROTOTYPE_FILTER; CallService(MS_PROTO_REGISTERMODULE,0,(LPARAM)&pd); - ZeroMemory(&pd,sizeof(pd)); - pd.cbSize=PROTOCOLDESCRIPTOR_V3_SIZE;//sizeof(pd); - - pd.szName=META_PROTO; + pd.szName = META_PROTO; pd.type = PROTOTYPE_PROTOCOL; CallService(MS_PROTO_REGISTERMODULE,0,(LPARAM)&pd); -- cgit v1.2.3