diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-01 19:37:35 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-01 19:37:35 +0000 |
commit | 754c5e27f878dc4a46131593e00e78e054faa995 (patch) | |
tree | e49b137bf04d56c58c50f5fb1760a6cf84bca658 /plugins/SecureIM/src/commonheaders.cpp | |
parent | 14ad5bd238bb3fb2edf8284a1c35f175e2f31d5f (diff) |
SecureIM:
- thread cleaning;
- fix SRMM status icon;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/commonheaders.cpp')
-rw-r--r-- | plugins/SecureIM/src/commonheaders.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/plugins/SecureIM/src/commonheaders.cpp b/plugins/SecureIM/src/commonheaders.cpp index ed88af67f9..f23ef86633 100644 --- a/plugins/SecureIM/src/commonheaders.cpp +++ b/plugins/SecureIM/src/commonheaders.cpp @@ -86,34 +86,7 @@ void SetFlags() db_set_b(0, MODULENAME, "mcm", bMCM);
}
-struct A2U {
- LPSTR a;
- LPSTR u;
-};
-typedef A2U* pA2U;
-
-pA2U pa2u;
-int ca2u=0;
-
-LPSTR TranslateU( LPCSTR lpText )
-{
- int i;
- for (i=0;i<ca2u;i++) {
- if ( pa2u[i].a == lpText ) {
- return pa2u[i].u;
- }
- }
- ca2u++;
- pa2u = (pA2U) mir_realloc(pa2u,sizeof(A2U)*ca2u);
- pa2u[i].a = (LPSTR) lpText;
- LPWSTR lpwText = mir_a2u(lpText);
- LPWSTR lpwTran = TranslateW(lpwText);
- mir_free(lpwText);
- pa2u[i].u = mir_strdup(exp->utf8encode(lpwTran));
- return pa2u[i].u;
-}
-
-int msgbox( HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType)
+int msgbox(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType)
{
LPWSTR lpwText = mir_a2u(lpText);
LPWSTR lpwCaption = mir_a2u(lpCaption);
@@ -139,7 +112,6 @@ void CopyToClipboard(HWND hwnd,LPSTR msg) CloseClipboard();
}
-#if defined(_DEBUG) || defined(NETLIB_LOG)
HANDLE hNetlibUser;
void InitNetlib()
@@ -168,7 +140,5 @@ int Sent_NetLog(const char *fmt,...) va_end(va);
return CallService(MS_NETLIB_LOG,(WPARAM)hNetlibUser,(LPARAM)szText);
}
-#endif
-
// EOF
|