diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-16 17:42:08 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-16 17:42:08 +0000 |
commit | 5975b2d0903bd5df128d55e20cd27d7c13b4e46c (patch) | |
tree | 6696492511c591fa8bf3b65a64864245caa3e7c2 /protocols/Twitter/utility.h | |
parent | 8617d7e00546f892c9084f7c382648b23d8bbb63 (diff) |
another portion of "#ifdef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/utility.h')
-rw-r--r-- | protocols/Twitter/utility.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/protocols/Twitter/utility.h b/protocols/Twitter/utility.h index c827a6d1ec..cc60ee15c4 100644 --- a/protocols/Twitter/utility.h +++ b/protocols/Twitter/utility.h @@ -120,20 +120,16 @@ protected: inline void mbcs_to_tcs(UINT code_page,const char *mbstr,TCHAR *tstr,int tlen)
{
-#ifdef UNICODE
+
MultiByteToWideChar(code_page,0,mbstr,-1,tstr,tlen);
-#else
- strncpy(tstr,mbstr,tlen);
-#endif
+
}
inline void wcs_to_tcs(UINT code_page,const wchar_t *wstr,TCHAR *tstr,int tlen)
{
-#ifdef UNICODE
+
wcsncpy(tstr,wstr,tlen);
-#else
- WideCharToMultiByte(code_page,0,wstr,-1,tstr,tlen,0,0);
-#endif
+
}
class ScopedLock
|