From e4709ec279fe4e531d33154c3b833a715cf56fbc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Jul 2016 16:24:08 +0000 Subject: removing TCHAR + WCHAR from headers git-svn-id: http://svn.miranda-ng.org/main/trunk@17146 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_system_cpp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/m_system_cpp.h') diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index e595583b9d..9a33d2a712 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -96,16 +96,16 @@ public: } }; -class pass_ptrW : public mir_ptr +class pass_ptrW : public mir_ptr { public: __inline explicit pass_ptrW() : mir_ptr(){} - __inline explicit pass_ptrW(WCHAR* _p) : mir_ptr(_p) {} + __inline explicit pass_ptrW(wchar_t* _p) : mir_ptr(_p) {} __inline ~pass_ptrW() { zero(); } - __inline WCHAR* operator = (WCHAR *_p){ zero(); return mir_ptr::operator=(_p); } + __inline wchar_t* operator = (wchar_t *_p){ zero(); return mir_ptr::operator=(_p); } __inline void zero() { - if (data) SecureZeroMemory(data, mir_wstrlen(data)*sizeof(WCHAR)); + if (data) SecureZeroMemory(data, mir_wstrlen(data)*sizeof(wchar_t)); } }; -- cgit v1.2.3