From 57c87234383026f1f57a3044f0d934fc13ea9d0e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 Jun 2012 21:37:18 +0000 Subject: - RecentContacts added; - _A2T & _T2A classes moved to m_utils.h git-svn-id: http://svn.miranda-ng.org/main/trunk@255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/irc.h | 58 ---------------------------------------------------- 1 file changed, 58 deletions(-) (limited to 'protocols/IRCG') diff --git a/protocols/IRCG/irc.h b/protocols/IRCG/irc.h index deecec316f..1d69f1cd85 100644 --- a/protocols/IRCG/irc.h +++ b/protocols/IRCG/irc.h @@ -115,64 +115,6 @@ public: } }; -struct _A2T -{ - _A2T( const char* s ) : - buf( mir_a2t( s )) - {} - - _A2T( const char* s, int cp ) : - buf( mir_a2t_cp( s, cp )) - {} - - _A2T( const String& s ) : - buf( mir_a2t( s )) - {} - - ~_A2T() - { mir_free(buf); - } - - __inline operator TCHAR*() const - { return buf; - } - - __inline operator CMString() const - { return CMString(buf); - } - - TCHAR* buf; -}; - -struct _T2A -{ - _T2A( const TCHAR* s ) : - buf( mir_t2a(s) ) - {} - - _T2A( const TCHAR* s, int cp ) : - buf( mir_t2a_cp( s, cp )) - {} - - _T2A( const CMString& s ) : - buf( mir_t2a( s )) - {} - - ~_T2A() - { mir_free(buf); - } - - __inline operator char*() const - { return buf; - } - - __inline operator String() const - { return String(buf); - } - - char* buf; -}; - // special service for tweaking performance, implemented in chat.dll #define MS_GC_GETEVENTPTR "GChat/GetNewEventPtr" typedef int (*GETEVENTFUNC)(WPARAM wParam, LPARAM lParam); -- cgit v1.2.3