summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/stdafx.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-21 18:38:42 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-21 18:38:42 +0000
commitafc1b562fdca819b1c24b0efc094f256bd45267a (patch)
treeca76bcc8ae97bd607f74988c6d65a96836612752 /plugins/IEView/src/stdafx.h
parent6f03a0bf158226db5e50e099786a09ba4894a393 (diff)
IEView: minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16734 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/stdafx.h')
-rw-r--r--plugins/IEView/src/stdafx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/IEView/src/stdafx.h b/plugins/IEView/src/stdafx.h
index 51e408cf01..8ec7481c40 100644
--- a/plugins/IEView/src/stdafx.h
+++ b/plugins/IEView/src/stdafx.h
@@ -79,4 +79,14 @@ extern IEView *debugView;
extern char *workingDirUtf8;
extern HANDLE hHookOptionsChanged;
+class BSTR_PTR
+{
+ BSTR _data;
+public:
+ BSTR_PTR(const wchar_t *src) : _data(SysAllocString(src)) {}
+ ~BSTR_PTR() { SysFreeString(_data); }
+ size_t length() { return SysStringLen(_data); }
+ operator BSTR () { return _data; }
+};
+
#endif