summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/mmi.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/SecureIM/mmi.cpp
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/mmi.cpp')
-rw-r--r--plugins/SecureIM/mmi.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SecureIM/mmi.cpp b/plugins/SecureIM/mmi.cpp
index 17195563e1..2269d76a51 100644
--- a/plugins/SecureIM/mmi.cpp
+++ b/plugins/SecureIM/mmi.cpp
@@ -75,8 +75,8 @@ LPSTR to_hex(PBYTE bin, int len) {
SAFE_FREE(m_hex);
m_hex = (LPSTR) mir_alloc(len*3+1);
LPSTR m_ptr = m_hex;
- for( int i=0; i<len; i++ ) {
- if( i ) {
+ for ( int i=0; i<len; i++ ) {
+ if ( i ) {
*m_ptr = ' '; m_ptr++;
}
mir_snprintf(m_ptr,4,"%02X",bin[i]);
@@ -108,11 +108,11 @@ void __fastcall safe_delete(void** p)
// преобразуем текст из чистого UTF8 в формат миранды
LPSTR utf8_to_miranda(LPCSTR szUtfMsg, DWORD& flags) {
LPSTR szNewMsg;
- if( iCoreVersion < 0x00060000 ) {
+ if ( iCoreVersion < 0x00060000 ) {
flags &= ~(PREF_UTF|PREF_UNICODE);
LPWSTR wszMsg = exp->utf8decode(szUtfMsg);
LPSTR szMsg = mir_u2a(wszMsg);
- if( bCoreUnicode ) {
+ if ( bCoreUnicode ) {
flags |= PREF_UNICODE;
int olen = (int)wcslen((LPWSTR)wszMsg)+1;
int nlen = olen*(sizeof(WCHAR)+1);