From ea9d5eb615dfa58b4b4b750897819d6aef07024a Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 3 Aug 2015 13:44:19 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@14833 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_db.h | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_db.h') diff --git a/protocols/SkypeWeb/src/skype_db.h b/protocols/SkypeWeb/src/skype_db.h index 42403cdc19..471b4e8f87 100644 --- a/protocols/SkypeWeb/src/skype_db.h +++ b/protocols/SkypeWeb/src/skype_db.h @@ -33,33 +33,5 @@ enum SKYPE_DB_EVENT_TYPE #define SKYPE_SETTINGS_PASSWORD "Password" #define SKYPE_SETTINGS_GROUP "DefaultGroup" -class pass_ptrA : public mir_ptr -{ -public: - __inline explicit pass_ptrA() : mir_ptr(){} - __inline explicit pass_ptrA(char* _p) : mir_ptr(_p) {} - __inline ~pass_ptrA() { zero(); } - __inline char* operator = (char *_p){ zero(); mir_ptr::operator=(_p); } - __inline void zero() - { char *_data = mir_ptr::operator char *(); - if (_data) SecureZeroMemory(_data, mir_strlen(_data)); - } -}; - -class pass_ptrW : public mir_ptr -{ -public: - __inline explicit pass_ptrW() : mir_ptr(){} - __inline explicit pass_ptrW(WCHAR* _p) : mir_ptr(_p) {} - __inline ~pass_ptrW() { zero(); } - __inline WCHAR* operator = (WCHAR *_p){ zero(); mir_ptr::operator=(_p); } - __inline void zero() - { WCHAR *_data = mir_ptr::operator WCHAR *(); - if (_data) SecureZeroMemory(_data, mir_wstrlen(_data)*sizeof(WCHAR)); - } -}; - -typedef pass_ptrW pass_ptrT; - #endif //_SKYPE_DB_H_ \ No newline at end of file -- cgit v1.2.3