From aa8f4373e0c9614b7d64a5760c0fa071b1c1edc9 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Jul 2012 11:11:20 +0000 Subject: - MZeroedObject used instead of the operator new() inlining - SAFE_DELETE of local objects removed from ICQ git-svn-id: http://svn.miranda-ng.org/main/trunk@1092 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/common.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/TopToolBar/common.h') diff --git a/plugins/TopToolBar/common.h b/plugins/TopToolBar/common.h index 996c3bf50f..0840111f2f 100644 --- a/plugins/TopToolBar/common.h +++ b/plugins/TopToolBar/common.h @@ -50,10 +50,8 @@ /////////////////////////////////////////////////////////////////////////////// // TopButtonInt class -struct TopButtonInt +struct TopButtonInt : public MZeroedObject { - __inline void* operator new(size_t size) { return calloc( 1, size ); } - __inline void operator delete(void* p) { free( p ); } ~TopButtonInt(); DWORD CheckFlags(DWORD Flags); @@ -77,12 +75,12 @@ struct TopButtonInt int x, y, arrangedpos; HICON hIconUp, hIconDn; HANDLE hIconHandleUp, hIconHandleDn; - + char *pszService; TCHAR *ptszProgram; char *pszName; TCHAR *ptszTooltip; - + LPARAM lParamUp; WPARAM wParamUp; LPARAM lParamDown; -- cgit v1.2.3