summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_send_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_send_manager.h')
-rw-r--r--protocols/JabberG/src/jabber_send_manager.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/protocols/JabberG/src/jabber_send_manager.h b/protocols/JabberG/src/jabber_send_manager.h
index fe4916686f..79cdf24522 100644
--- a/protocols/JabberG/src/jabber_send_manager.h
+++ b/protocols/JabberG/src/jabber_send_manager.h
@@ -1,15 +1,15 @@
/*
Jabber Protocol Plugin for Miranda IM
-Copyright ( C ) 2002-04 Santithorn Bunchua
-Copyright ( C ) 2005-08 George Hazan
-Copyright ( C ) 2007 Maxim Mluhov
-Copyright ( C ) 2008-09 Dmitriy Chervov
+Copyright (C) 2002-04 Santithorn Bunchua
+Copyright (C) 2005-08 George Hazan
+Copyright (C) 2007 Maxim Mluhov
+Copyright (C) 2008-09 Dmitriy Chervov
This program is free software; you can redistribute it and/or
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.
+of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -28,12 +28,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "jabber_xml.h"
struct CJabberProto;
-typedef void ( CJabberProto::*JABBER_SEND_PFUNC )( HXML node, void *usedata );
-typedef void ( *SEND_USER_DATA_FREE_FUNC )( void *pUserData );
+typedef void (CJabberProto::*JABBER_SEND_PFUNC)(HXML node, void *usedata);
+typedef void (*SEND_USER_DATA_FREE_FUNC)(void *pUserData);
class CJabberSendInfo;
-typedef BOOL ( CJabberProto::*JABBER_SEND_HANDLER )( HXML node, ThreadData *pThreadData, CJabberSendInfo* pInfo );
+typedef BOOL (CJabberProto::*JABBER_SEND_HANDLER)(HXML node, ThreadData *pThreadData, CJabberSendInfo* pInfo);
class CJabberSendInfo
{
@@ -75,7 +75,7 @@ public:
}
~CJabberSendPermanentInfo()
{
- if ( m_pUserDataFree )
+ if (m_pUserDataFree)
m_pUserDataFree(m_pUserData);
}
};
@@ -88,7 +88,7 @@ protected:
CJabberSendPermanentInfo* m_pPermanentHandlers;
public:
- CJabberSendManager( CJabberProto* proto )
+ CJabberSendManager(CJabberProto* proto)
{
InitializeCriticalSection(&m_cs);
m_pPermanentHandlers = NULL;
@@ -98,7 +98,7 @@ public:
{
Lock();
CJabberSendPermanentInfo *pInfo = m_pPermanentHandlers;
- while ( pInfo )
+ while (pInfo)
{
CJabberSendPermanentInfo *pTmp = pInfo->m_pNext;
delete pInfo;
@@ -127,7 +127,7 @@ public:
CJabberSendPermanentInfo* AddPermanentHandler(JABBER_SEND_HANDLER pHandler, void *pUserData = NULL, SEND_USER_DATA_FREE_FUNC pUserDataFree = NULL, int iPriority = JH_PRIORITY_DEFAULT)
{
CJabberSendPermanentInfo* pInfo = new CJabberSendPermanentInfo();
- if (!pInfo)
+ if ( !pInfo)
return NULL;
pInfo->m_pHandler = pHandler;
@@ -136,7 +136,7 @@ public:
pInfo->m_iPriority = iPriority;
Lock();
- if (!m_pPermanentHandlers)
+ if ( !m_pPermanentHandlers)
m_pPermanentHandlers = pInfo;
else
{
@@ -159,7 +159,7 @@ public:
BOOL DeletePermanentHandler(CJabberSendPermanentInfo *pInfo)
{ // returns TRUE when pInfo found, or FALSE otherwise
Lock();
- if (!m_pPermanentHandlers)
+ if ( !m_pPermanentHandlers)
{
Unlock();
return FALSE;