diff options
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/jabber.h | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_bookmarks.cpp | 10 | ||||
-rw-r--r-- | protocols/JabberG/jabber_disco.h | 22 | ||||
-rw-r--r-- | protocols/JabberG/jabber_file.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_ft.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_groupchat.cpp | 18 | ||||
-rw-r--r-- | protocols/JabberG/jabber_iq.h | 9 | ||||
-rw-r--r-- | protocols/JabberG/jabber_iq_handlers.cpp | 4 | ||||
-rw-r--r-- | protocols/JabberG/jabber_iqid.cpp | 6 | ||||
-rw-r--r-- | protocols/JabberG/jabber_libstr.cpp | 16 | ||||
-rw-r--r-- | protocols/JabberG/jabber_list.cpp | 4 | ||||
-rw-r--r-- | protocols/JabberG/jabber_message_manager.h | 7 | ||||
-rw-r--r-- | protocols/JabberG/jabber_privacy.h | 6 | ||||
-rw-r--r-- | protocols/JabberG/jabber_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_rc.h | 6 | ||||
-rw-r--r-- | protocols/JabberG/jabber_thread.cpp | 16 | ||||
-rw-r--r-- | protocols/JabberG/jabber_xstatus.cpp | 8 |
17 files changed, 58 insertions, 82 deletions
diff --git a/protocols/JabberG/jabber.h b/protocols/JabberG/jabber.h index 745650b8ce..124e99a2d2 100644 --- a/protocols/JabberG/jabber.h +++ b/protocols/JabberG/jabber.h @@ -645,8 +645,6 @@ int ReloadIconsEventHook(WPARAM wParam, LPARAM lParam); //---- jabber_libstr.c ----------------------------------------------
-void __stdcall replaceStr( char*& dest, const char* src );
-void __stdcall replaceStr( WCHAR*& dest, const WCHAR* src );
int lstrcmp_null(const TCHAR *s1, const TCHAR *s2);
//---- jabber_menu.c ------------------------------------------------
diff --git a/protocols/JabberG/jabber_bookmarks.cpp b/protocols/JabberG/jabber_bookmarks.cpp index f3923e04de..9ad9baf91a 100644 --- a/protocols/JabberG/jabber_bookmarks.cpp +++ b/protocols/JabberG/jabber_bookmarks.cpp @@ -117,18 +117,18 @@ static INT_PTR CALLBACK JabberAddBookmarkDlgProc( HWND hwndDlg, UINT msg, WPARAM item->bUseResource = TRUE;
if ( SendDlgItemMessage(hwndDlg, IDC_URL_RADIO, BM_GETCHECK,0, 0) == BST_CHECKED )
- replaceStr( item->type, _T( "url" ));
+ replaceStrT( item->type, _T( "url" ));
else
- replaceStr( item->type, _T( "conference" ));
+ replaceStrT( item->type, _T( "conference" ));
GetDlgItemText( hwndDlg, IDC_NICK, text, SIZEOF( text ));
- replaceStr( item->nick, text );
+ replaceStrT( item->nick, text );
GetDlgItemText( hwndDlg, IDC_PASSWORD, text, SIZEOF( text ));
- replaceStr( item->password, text );
+ replaceStrT( item->password, text );
GetDlgItemText( hwndDlg, IDC_NAME, text, SIZEOF( text ));
- replaceStr( item->name, ( text[0] == 0 ) ? roomJID : text );
+ replaceStrT( item->name, ( text[0] == 0 ) ? roomJID : text );
item->bAutoJoin = (SendDlgItemMessage(hwndDlg, IDC_CHECK_BM_AUTOJOIN, BM_GETCHECK,0, 0) == BST_CHECKED );
{
diff --git a/protocols/JabberG/jabber_disco.h b/protocols/JabberG/jabber_disco.h index 583bc61f4c..79df12781e 100644 --- a/protocols/JabberG/jabber_disco.h +++ b/protocols/JabberG/jabber_disco.h @@ -155,11 +155,11 @@ public: }
BOOL RemoveAll()
{
- replaceStr( m_szJid, NULL );
- replaceStr( m_szNode, NULL );
- replaceStr( m_szName, NULL );
- replaceStr( m_szInfoError, NULL );
- replaceStr( m_szItemsError, NULL );
+ replaceStrT( m_szJid, NULL );
+ replaceStrT( m_szNode, NULL );
+ replaceStrT( m_szName, NULL );
+ replaceStrT( m_szInfoError, NULL );
+ replaceStrT( m_szItemsError, NULL );
if ( m_pIdentities )
delete m_pIdentities;
m_pIdentities = NULL;
@@ -181,8 +181,8 @@ public: }
BOOL ResetInfo()
{
- replaceStr( m_szInfoError, NULL );
- replaceStr( m_szItemsError, NULL );
+ replaceStrT( m_szInfoError, NULL );
+ replaceStrT( m_szItemsError, NULL );
if ( m_pIdentities )
delete m_pIdentities;
m_pIdentities = NULL;
@@ -229,7 +229,7 @@ public: }
BOOL SetJid(TCHAR *szJid)
{
- replaceStr(m_szJid, szJid);
+ replaceStrT(m_szJid, szJid);
return TRUE;
}
TCHAR* GetJid()
@@ -238,7 +238,7 @@ public: }
BOOL SetNode(TCHAR *szNode)
{
- replaceStr(m_szNode, szNode);
+ replaceStrT(m_szNode, szNode);
return TRUE;
}
TCHAR* GetNode()
@@ -347,12 +347,12 @@ public: }
BOOL SetItemsRequestErrorText(TCHAR *szError)
{
- replaceStr(m_szItemsError, szError);
+ replaceStrT(m_szItemsError, szError);
return TRUE;
}
BOOL SetInfoRequestErrorText(TCHAR *szError)
{
- replaceStr(m_szInfoError, szError);
+ replaceStrT(m_szInfoError, szError);
return TRUE;
}
BOOL GetTooltipText(TCHAR *szText, int nMaxLength)
diff --git a/protocols/JabberG/jabber_file.cpp b/protocols/JabberG/jabber_file.cpp index 716e108caf..c445e1f4b0 100644 --- a/protocols/JabberG/jabber_file.cpp +++ b/protocols/JabberG/jabber_file.cpp @@ -529,7 +529,7 @@ int filetransfer::create() TCHAR filefull[ MAX_PATH ];
mir_sntprintf( filefull, SIZEOF(filefull), _T("%s\\%s"), std.tszWorkingDir, std.tszCurrentFile );
- replaceStr( std.tszCurrentFile, filefull );
+ replaceStrT( std.tszCurrentFile, filefull );
if ( hWaitEvent != INVALID_HANDLE_VALUE )
CloseHandle( hWaitEvent );
diff --git a/protocols/JabberG/jabber_ft.cpp b/protocols/JabberG/jabber_ft.cpp index ac011392f6..906b5b3562 100644 --- a/protocols/JabberG/jabber_ft.cpp +++ b/protocols/JabberG/jabber_ft.cpp @@ -280,7 +280,7 @@ void CJabberProto::FtSendFinal( BOOL success, filetransfer* ft ) else {
if ( ft->std.currentFileNumber < ft->std.totalFiles-1 ) {
ft->std.currentFileNumber++;
- replaceStr( ft->std.tszCurrentFile, ft->std.ptszFiles[ ft->std.currentFileNumber ] );
+ replaceStrT( ft->std.tszCurrentFile, ft->std.ptszFiles[ ft->std.currentFileNumber ] );
JSendBroadcast( ft->std.hContact, ACKTYPE_FILE, ACKRESULT_NEXTFILE, ft, 0 );
FtInitiate( ft->jid, ft );
return;
diff --git a/protocols/JabberG/jabber_groupchat.cpp b/protocols/JabberG/jabber_groupchat.cpp index 3f535352d8..b442588fc0 100644 --- a/protocols/JabberG/jabber_groupchat.cpp +++ b/protocols/JabberG/jabber_groupchat.cpp @@ -308,8 +308,8 @@ void CJabberProto::GroupchatJoinRoom( const TCHAR* server, const TCHAR* room, co JABBER_LIST_ITEM* item = ListAdd( LIST_CHATROOM, text );
item->bAutoJoin = autojoin;
- replaceStr( item->nick, nick );
- replaceStr( item->password, info.password );
+ replaceStrT( item->nick, nick );
+ replaceStrT( item->password, info.password );
int status = ( m_iStatus == ID_STATUS_INVISIBLE ) ? ID_STATUS_ONLINE : m_iStatus;
XmlNode x( _T("x")); x << XATTR( _T("xmlns"), _T(JABBER_FEAT_MUC));
@@ -867,7 +867,7 @@ static VOID CALLBACK JabberGroupchatChangeNickname( void* arg ) if ( param->ppro->EnterString( szBuffer, SIZEOF(szBuffer), szCaption, JES_COMBO, "gcNick_" )) {
TCHAR text[ 1024 ];
- replaceStr( item->nick, szBuffer );
+ replaceStrT( item->nick, szBuffer );
mir_sntprintf( text, SIZEOF( text ), _T("%s/%s"), item->jid, szBuffer );
param->ppro->SendPresenceTo( param->ppro->m_iStatus, text, NULL );
} }
@@ -898,10 +898,10 @@ void CJabberProto::RenameParticipantNick( JABBER_LIST_ITEM* item, const TCHAR* o for ( int i=0; i < item->resourceCount; i++ ) {
JABBER_RESOURCE_STATUS& RS = item->resource[i];
if ( !lstrcmp( RS.resourceName, oldNick )) {
- replaceStr( RS.resourceName, newNick );
+ replaceStrT( RS.resourceName, newNick );
if ( !lstrcmp( item->nick, oldNick )) {
- replaceStr( item->nick, newNick );
+ replaceStrT( item->nick, newNick );
HANDLE hContact = HContactFromJID( item->jid );
if ( hContact != NULL )
@@ -960,7 +960,7 @@ void CJabberProto::GroupchatProcessPresence( HXML node ) // process custom nick change
if ( cnick && r && r->nick && _tcscmp( cnick, r->nick ))
- replaceStr( r->nick, cnick );
+ replaceStrT( r->nick, cnick );
HXML xNode = xmlGetChildByTag( node, "x", "xmlns", _T(JABBER_FEAT_MUC_USER));
HXML xUserNode = xmlGetChildByTag( node, "user:x", "xmlns:user", _T(JABBER_FEAT_MUC_USER));
@@ -1050,7 +1050,7 @@ void CJabberProto::GroupchatProcessPresence( HXML node ) }
if ( str = xmlGetAttrValue( itemNode, _T("jid")))
- replaceStr( r->szRealJid, str );
+ replaceStrT( r->szRealJid, str );
}
}
@@ -1151,7 +1151,7 @@ void CJabberProto::GroupchatProcessPresence( HXML node ) JGetStringT(NULL, "GcAltNick", newNick, SIZEOF(newNick)) != NULL &&
newNick[0] != _T('\0'))
{
- replaceStr(item->nick, newNick);
+ replaceStrT(item->nick, newNick);
TCHAR text[1024] = { 0 };
mir_sntprintf(text, SIZEOF(text), _T("%s/%s"), item->jid, newNick);
SendPresenceTo(m_iStatus, text, NULL);
@@ -1214,7 +1214,7 @@ void CJabberProto::GroupchatProcessMessage( HXML node ) *(TCHAR*)(--tmptr) = 0;
resource = tmpnick;
} }
- replaceStr( item->itemResource.statusMessage, msgText );
+ replaceStrT( item->itemResource.statusMessage, msgText );
}
else {
if (( n = xmlGetChildByTag( node , "body", "xml:lang", m_tszSelectedLang )) == NULL )
diff --git a/protocols/JabberG/jabber_iq.h b/protocols/JabberG/jabber_iq.h index 85da7e5195..6e145e7db0 100644 --- a/protocols/JabberG/jabber_iq.h +++ b/protocols/JabberG/jabber_iq.h @@ -56,9 +56,6 @@ typedef struct { BOOL allowSubNs; // e.g. #info in disco#info
} JABBER_IQ_XMLNS_FUNC;
-void __stdcall replaceStr( char*& dest, const char* src );
-void __stdcall replaceStr( WCHAR*& dest, const WCHAR* src );
-
// 2 minutes, milliseconds
#define JABBER_DEFAULT_IQ_REQUEST_TIMEOUT 120000
@@ -111,7 +108,7 @@ public: }
void SetReceiver(const TCHAR *szReceiver)
{
- replaceStr(m_szReceiver, szReceiver);
+ replaceStrT(m_szReceiver, szReceiver);
}
TCHAR* GetReceiver()
{
@@ -379,9 +376,9 @@ public: pInfo->m_pHandler = pHandler;
pInfo->m_nIqTypes = nIqTypes ? nIqTypes : JABBER_IQ_TYPE_ANY;
- replaceStr( pInfo->m_szXmlns, szXmlns );
+ replaceStrT( pInfo->m_szXmlns, szXmlns );
pInfo->m_bAllowPartialNs = bAllowPartialNs;
- replaceStr( pInfo->m_szTag, szTag );
+ replaceStrT( pInfo->m_szTag, szTag );
pInfo->m_dwParamsToParse = dwParamsToParse;
pInfo->m_pUserData = pUserData;
pInfo->m_pUserDataFree = pUserDataFree;
diff --git a/protocols/JabberG/jabber_iq_handlers.cpp b/protocols/JabberG/jabber_iq_handlers.cpp index 4a77b5847d..28effcdff7 100644 --- a/protocols/JabberG/jabber_iq_handlers.cpp +++ b/protocols/JabberG/jabber_iq_handlers.cpp @@ -516,10 +516,10 @@ BOOL CJabberProto::OnRosterPushRequest( HXML, CJabberIqInfo *pInfo ) if ( nick != NULL ) {
if (( item=ListAdd( LIST_ROSTER, jid )) != NULL ) {
- replaceStr( item->nick, nick );
+ replaceStrT( item->nick, nick );
HXML groupNode = xmlGetChild( itemNode , "group" );
- replaceStr( item->group, ( groupNode ) ? xmlGetText( groupNode ) : NULL );
+ replaceStrT( item->group, ( groupNode ) ? xmlGetText( groupNode ) : NULL );
if (( hContact=HContactFromJID( jid, 0 )) == NULL ) {
// Received roster has a new JID.
diff --git a/protocols/JabberG/jabber_iqid.cpp b/protocols/JabberG/jabber_iqid.cpp index e90fdfcbc6..dcc7f9c6ee 100644 --- a/protocols/JabberG/jabber_iqid.cpp +++ b/protocols/JabberG/jabber_iqid.cpp @@ -428,7 +428,7 @@ void CJabberProto::OnIqResultGetRoster( HXML iqNode, CJabberIqInfo* pInfo ) mir_free( item->nick ); item->nick = nick;
HXML groupNode = xmlGetChild( itemNode , "group" );
- replaceStr( item->group, ( groupNode ) ? xmlGetText( groupNode ) : NULL );
+ replaceStrT( item->group, ( groupNode ) ? xmlGetText( groupNode ) : NULL );
// check group delimiters:
if ( item->group && szGroupDelimeter ) {
@@ -710,7 +710,7 @@ LBL_Ret: hasPhoto = TRUE;
if ( item->photoFileName )
DeleteFile( item->photoFileName );
- replaceStr( item->photoFileName, szAvatarFileName );
+ replaceStrT( item->photoFileName, szAvatarFileName );
Log( "Contact's picture saved to " TCHAR_STR_PARAM, szAvatarFileName );
if (JGetWord( hContact, "Status", ID_STATUS_OFFLINE ) == ID_STATUS_OFFLINE) {
@@ -1696,7 +1696,7 @@ void CJabberProto::OnIqResultLastActivity( HXML iqNode, CJabberIqInfo* pInfo ) LPCTSTR szLastStatusMessage = XPathT( iqNode, "query[@xmlns='jabber:iq:last']" );
if ( szLastStatusMessage ) // replace only if it exists
- replaceStr( r->statusMessage, szLastStatusMessage );
+ replaceStrT( r->statusMessage, szLastStatusMessage );
}
r->idleStartTime = lastActivity;
diff --git a/protocols/JabberG/jabber_libstr.cpp b/protocols/JabberG/jabber_libstr.cpp index b628c88348..4517d77272 100644 --- a/protocols/JabberG/jabber_libstr.cpp +++ b/protocols/JabberG/jabber_libstr.cpp @@ -22,22 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "jabber.h"
-void __stdcall replaceStr( char*& dest, const char* src )
-{
- if ( dest != NULL )
- mir_free( dest );
-
- dest = ( src != NULL ) ? mir_strdup( src ) : NULL;
-}
-
-void __stdcall replaceStr( WCHAR*& dest, const WCHAR* src )
-{
- if ( dest != NULL )
- mir_free( dest );
-
- dest = ( src != NULL ) ? mir_wstrdup( src ) : NULL;
-}
-
int lstrcmp_null(const TCHAR *s1, const TCHAR *s2)
{
if (!s1 && !s2) return 0;
diff --git a/protocols/JabberG/jabber_list.cpp b/protocols/JabberG/jabber_list.cpp index 3721b00c7e..8a956ebc47 100644 --- a/protocols/JabberG/jabber_list.cpp +++ b/protocols/JabberG/jabber_list.cpp @@ -249,7 +249,7 @@ int CJabberProto::ListAddResource( JABBER_LIST list, const TCHAR* jid, int statu if ( !_tcscmp( r->resourceName, resource )) {
// Already exist, update status and statusMessage
r->status = status;
- replaceStr( r->statusMessage, statusMessage );
+ replaceStrT( r->statusMessage, statusMessage );
r->priority = priority;
break;
} }
@@ -273,7 +273,7 @@ int CJabberProto::ListAddResource( JABBER_LIST list, const TCHAR* jid, int statu // No resource, update the main statusMessage
else {
LI->itemResource.status = status;
- replaceStr( LI->itemResource.statusMessage, statusMessage );
+ replaceStrT( LI->itemResource.statusMessage, statusMessage );
}
LeaveCriticalSection( &m_csLists );
diff --git a/protocols/JabberG/jabber_message_manager.h b/protocols/JabberG/jabber_message_manager.h index 5265056bca..dd52b50683 100644 --- a/protocols/JabberG/jabber_message_manager.h +++ b/protocols/JabberG/jabber_message_manager.h @@ -31,9 +31,6 @@ struct CJabberProto; typedef void ( CJabberProto::*JABBER_MESSAGE_PFUNC )( HXML messageNode, void *usedata );
typedef void ( *MESSAGE_USER_DATA_FREE_FUNC )( void *pUserData );
-void __stdcall replaceStr( char*& dest, const char* src );
-void __stdcall replaceStr( WCHAR*& dest, const WCHAR* src );
-
class CJabberMessageInfo;
typedef BOOL ( CJabberProto::*JABBER_PERMANENT_MESSAGE_HANDLER )( HXML messageNode, ThreadData *pThreadData, CJabberMessageInfo* pInfo );
@@ -185,9 +182,9 @@ public: pInfo->m_pHandler = pHandler;
pInfo->m_nMessageTypes = nMessageTypes ? nMessageTypes : JABBER_MESSAGE_TYPE_ANY;
- replaceStr( pInfo->m_szXmlns, szXmlns );
+ replaceStrT( pInfo->m_szXmlns, szXmlns );
pInfo->m_bAllowPartialNs = bAllowPartialNs;
- replaceStr( pInfo->m_szTag, szTag );
+ replaceStrT( pInfo->m_szTag, szTag );
pInfo->m_dwParamsToParse = dwParamsToParse;
pInfo->m_pUserData = pUserData;
pInfo->m_pUserDataFree = pUserDataFree;
diff --git a/protocols/JabberG/jabber_privacy.h b/protocols/JabberG/jabber_privacy.h index a6fe82e725..4a2cfd8f2f 100644 --- a/protocols/JabberG/jabber_privacy.h +++ b/protocols/JabberG/jabber_privacy.h @@ -109,7 +109,7 @@ public: }
__inline BOOL SetValue( TCHAR *szValue )
{
- replaceStr( m_szValue, szValue );
+ replaceStrT( m_szValue, szValue );
return TRUE;
}
__inline DWORD GetPackets()
@@ -359,11 +359,11 @@ public: }
void SetActiveListName(const TCHAR *szListName)
{
- replaceStr(m_szActiveListName, szListName);
+ replaceStrT(m_szActiveListName, szListName);
}
void SetDefaultListName(const TCHAR *szListName)
{
- replaceStr(m_szDefaultListName, szListName);
+ replaceStrT(m_szDefaultListName, szListName);
}
TCHAR* GetDefaultListName()
{
diff --git a/protocols/JabberG/jabber_proto.cpp b/protocols/JabberG/jabber_proto.cpp index 8e6bc32294..8369570506 100644 --- a/protocols/JabberG/jabber_proto.cpp +++ b/protocols/JabberG/jabber_proto.cpp @@ -682,7 +682,7 @@ int __cdecl CJabberProto::FileResume( HANDLE hTransfer, int* action, const TCHAR return 1;
if ( *action == FILERESUME_RENAME )
- replaceStr( ft->std.tszCurrentFile, *szFilename );
+ replaceStrT( ft->std.tszCurrentFile, *szFilename );
SetEvent( ft->hWaitEvent );
return 0;
diff --git a/protocols/JabberG/jabber_rc.h b/protocols/JabberG/jabber_rc.h index 763743a28e..cb3bf1b9cc 100644 --- a/protocols/JabberG/jabber_rc.h +++ b/protocols/JabberG/jabber_rc.h @@ -110,9 +110,9 @@ public: CJabberAdhocNode( CJabberProto* pProto, TCHAR* szJid, TCHAR* szNode, TCHAR* szName, JABBER_ADHOC_HANDLER pHandler )
{
ZeroMemory( this, sizeof( CJabberAdhocNode ));
- replaceStr( m_szJid, szJid );
- replaceStr( m_szNode, szNode );
- replaceStr( m_szName, szName );
+ replaceStrT( m_szJid, szJid );
+ replaceStrT( m_szNode, szNode );
+ replaceStrT( m_szName, szName );
m_pHandler = pHandler;
m_pProto = pProto;
}
diff --git a/protocols/JabberG/jabber_thread.cpp b/protocols/JabberG/jabber_thread.cpp index 740c9c4c91..b93b1127d8 100644 --- a/protocols/JabberG/jabber_thread.cpp +++ b/protocols/JabberG/jabber_thread.cpp @@ -1542,9 +1542,9 @@ void CJabberProto::OnProcessPresenceCapabilites( HXML node ) const TCHAR *szVer = xmlGetAttrValue( n, _T("ver"));
const TCHAR *szExt = xmlGetAttrValue( n, _T("ext"));
if ( szNode && szVer ) {
- replaceStr( r->szCapsNode, szNode );
- replaceStr( r->szCapsVer, szVer );
- replaceStr( r->szCapsExt, szExt );
+ replaceStrT( r->szCapsNode, szNode );
+ replaceStrT( r->szCapsVer, szVer );
+ replaceStrT( r->szCapsExt, szExt );
HANDLE hContact = HContactFromJID( from );
if ( hContact )
UpdateMirVer( hContact, r );
@@ -1769,9 +1769,9 @@ void CJabberProto::OnProcessPresence( HXML node, ThreadData* info ) {
item->itemResource.status = ID_STATUS_OFFLINE;
if ((( statusNode = xmlGetChild( node , "status" )) != NULL ) && xmlGetText( statusNode ))
- replaceStr( item->itemResource.statusMessage, xmlGetText( statusNode ));
+ replaceStrT( item->itemResource.statusMessage, xmlGetText( statusNode ));
else
- replaceStr( item->itemResource.statusMessage, NULL );
+ replaceStrT( item->itemResource.statusMessage, NULL );
}
}
else Log( "SKIP Receive presence offline from " TCHAR_STR_PARAM " ( who is not in my roster )", from );
@@ -1856,9 +1856,9 @@ void CJabberProto::OnIqResultVersion( HXML /*node*/, CJabberIqInfo *pInfo ) r->dwVersionRequestTime = -1;
- replaceStr( r->software, NULL );
- replaceStr( r->version, NULL );
- replaceStr( r->system, NULL );
+ replaceStrT( r->software, NULL );
+ replaceStrT( r->version, NULL );
+ replaceStrT( r->system, NULL );
HXML queryNode = pInfo->GetChildNode();
diff --git a/protocols/JabberG/jabber_xstatus.cpp b/protocols/JabberG/jabber_xstatus.cpp index cd1f5c9a50..07ee610a80 100644 --- a/protocols/JabberG/jabber_xstatus.cpp +++ b/protocols/JabberG/jabber_xstatus.cpp @@ -750,7 +750,7 @@ void CPepMood::SetMood(HANDLE hContact, const TCHAR *szMood, const TCHAR *szText if (!hContact)
{
m_mode = mood;
- replaceStr(m_text, szText);
+ replaceStrT(m_text, szText);
HANDLE hIcon = (mood >= 0) ? m_icons.GetIcolibHandle(g_arrMoods[mood].szTag) : LoadSkinnedIconHandle(SKINICON_OTHER_SMALLDOT);
TCHAR title[128];
@@ -805,7 +805,7 @@ void CPepMood::ShowSetDialog(BYTE bQuiet) return;
m_mode = dlg.GetStatusMode();
- replaceStr(m_text, dlg.GetStatusText());
+ replaceStrT(m_text, dlg.GetStatusText());
}
if (m_mode >= 0)
@@ -1177,7 +1177,7 @@ void CPepActivity::SetActivity(HANDLE hContact, LPCTSTR szFirst, LPCTSTR szSecon if (!hContact)
{
m_mode = activity;
- replaceStr(m_text, szText);
+ replaceStrT(m_text, szText);
HANDLE hIcon = (activity >= 0) ? m_icons.GetIcolibHandle(returnActivity(activity)) : LoadSkinnedIconHandle(SKINICON_OTHER_SMALLDOT);
TCHAR title[128];
@@ -1222,7 +1222,7 @@ void CPepActivity::ShowSetDialog(BYTE bQuiet) m_mode = dlg.GetStatusMode();
if (m_mode >= 0)
{
- replaceStr(m_text, dlg.GetStatusText());
+ replaceStrT(m_text, dlg.GetStatusText());
Publish();
UpdateMenuItem(m_icons.GetIcolibHandle(returnActivity(m_mode)), g_arrActivities[m_mode].szTitle);
|