From d15942d7c7c07b99c21e5156d6150e19261fe7ee Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 20 Feb 2013 13:19:22 +0000 Subject: small cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@3650 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MenuItemEx/src/main.cpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'plugins') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index a865432ab9..5a62b68210 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -90,10 +90,9 @@ PLUGININFOEX pluginInfoEx = { __EMAIL, __COPYRIGHTS, __WEB, - UNICODE_AWARE, + UNICODE_AWARE, // {b1902a52-9114-4d7e-ac2e-b3a52e01d574} - {0xb1902a52, 0x9114, 0x4d7e, { 0xac, 0x2e, 0xb3, 0xa5, 0x2e, 0x01, 0xd5, 0x74 }} - + {0xb1902a52, 0x9114, 0x4d7e, {0xac, 0x2e, 0xb3, 0xa5, 0x2e, 0x01, 0xd5, 0x74}} }; struct ModSetLinkLinkItem { // code from dbe++ plugin by Bio @@ -143,8 +142,8 @@ int enumModulesSettingsProc( const char *szName, LPARAM lParam) void FreeModuleSettingLL(ModuleSettingLL* msll) { - if (msll) - { + if (msll) + { struct ModSetLinkLinkItem *item = msll->first; struct ModSetLinkLinkItem *temp; @@ -255,27 +254,27 @@ void CopyToClipboard(HWND hwnd,LPSTR pszMsg, LPTSTR ptszMsg) if (ptszMsg) buf = mir_tstrdup(ptszMsg); else if (pszMsg) - buf = mir_a2t(pszMsg); + buf = mir_a2t(pszMsg); if (buf == 0) return; - hglbCopy = GlobalAlloc(GMEM_MOVEABLE, (lstrlen(buf)+1)*sizeof(TCHAR)); - lptstrCopy = (LPTSTR)GlobalLock(hglbCopy); + hglbCopy = GlobalAlloc(GMEM_MOVEABLE, (lstrlen(buf)+1)*sizeof(TCHAR)); + lptstrCopy = (LPTSTR)GlobalLock(hglbCopy); lstrcpy(lptstrCopy, buf); mir_free(buf); - GlobalUnlock(hglbCopy); + GlobalUnlock(hglbCopy); OpenClipboard(NULL); - EmptyClipboard(); + EmptyClipboard(); SetClipboardData(CF_UNICODETEXT, hglbCopy); CloseClipboard(); } -BOOL isMetaContact(HANDLE hContact) { - +BOOL isMetaContact(HANDLE hContact) +{ char *proto; if(bMetaContacts) { proto = GetContactProto(hContact); @@ -286,16 +285,16 @@ BOOL isMetaContact(HANDLE hContact) { return FALSE; } -HANDLE getDefaultContact(HANDLE hContact) { - +HANDLE getDefaultContact(HANDLE hContact) +{ if(bMetaContacts) { return (HANDLE)CallService(MS_MC_GETDEFAULTCONTACT,(WPARAM)hContact,0); } return 0; } -HANDLE getMostOnline(HANDLE hContact) { - +HANDLE getMostOnline(HANDLE hContact) +{ if(bMetaContacts) { return (HANDLE)CallService(MS_MC_GETMOSTONLINECONTACT,(WPARAM)hContact,0); } -- cgit v1.2.3