summaryrefslogtreecommitdiff
path: root/protocols/Omegle
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 /protocols/Omegle
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 'protocols/Omegle')
-rw-r--r--protocols/Omegle/proto.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/protocols/Omegle/proto.h b/protocols/Omegle/proto.h
index 457ea775cd..053071aac8 100644
--- a/protocols/Omegle/proto.h
+++ b/protocols/Omegle/proto.h
@@ -22,21 +22,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-class OmegleProto : public PROTO_INTERFACE
+class OmegleProto : public PROTO_INTERFACE, public MZeroedObject
{
public:
OmegleProto( const char *proto_name, const TCHAR *username );
~OmegleProto( );
- __inline void* operator new( size_t size )
- {
- return calloc( 1, size );
- }
- __inline void operator delete( void* p )
- {
- free( p );
- }
-
inline const char* ModuleName( ) const
{
return m_szModuleName;
@@ -124,7 +115,7 @@ public:
void __cdecl SendMsgWorker(void*);
void __cdecl SendTypingWorker(void*);
-
+
void __cdecl NewChatWorker(void*);
void __cdecl StopChatWorker(void*);
@@ -140,7 +131,7 @@ public:
void AddChatContact(const TCHAR *nick);
void DeleteChatContact(const TCHAR *name);
void SetChatStatus(int);
- void ClearChat();
+ void ClearChat();
void SetTopic(const TCHAR *topic = NULL);
// Connection client