summaryrefslogtreecommitdiff
path: root/src/modules/clist/genmenu.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-21 11:11:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-21 11:11:20 +0000
commitaa8f4373e0c9614b7d64a5760c0fa071b1c1edc9 (patch)
tree218b31bc3166dfc36adf55800b7e7cdea17a8c68 /src/modules/clist/genmenu.h
parentc80bc292b555c6666930790c399f6fac6226c468 (diff)
- 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
Diffstat (limited to 'src/modules/clist/genmenu.h')
-rw-r--r--src/modules/clist/genmenu.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/clist/genmenu.h b/src/modules/clist/genmenu.h
index aa924656e0..81f737d405 100644
--- a/src/modules/clist/genmenu.h
+++ b/src/modules/clist/genmenu.h
@@ -2,7 +2,7 @@
Miranda IM: the free IM client for Microsoft* Windows*
-Copyright 2000-2010 Miranda ICQ/IM project,
+Copyright 2000-2010 Miranda ICQ/IM project,
all portions of this codebase are copyrighted to the people
listed in contributors.txt.
@@ -11,7 +11,7 @@ modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
-This program is distributed in the hope that it will be useful,
+This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@@ -57,18 +57,11 @@ typedef struct _tagIntMenuItem
}
TMO_IntMenuItem, *PMO_IntMenuItem;
-struct TIntMenuObject
+struct TIntMenuObject : public MZeroedObject
{
TIntMenuObject();
~TIntMenuObject();
- __inline void* operator new(size_t size)
- { return mir_calloc(size);
- }
- __inline void operator delete(void* p)
- { mir_free(p);
- }
-
char* Name;
int id;