diff options
author | George Hazan <george.hazan@gmail.com> | 2013-09-21 22:30:39 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-09-21 22:30:39 +0000 |
commit | c4645924a1a945ddf1c02c60450b8b9ca0363c65 (patch) | |
tree | 7c79a42a241c98842b4bbb10eab5aa826777af67 /include | |
parent | 7c0fdf0c457d55b6bfdda0282cf5099057c715c7 (diff) |
mir_ptr<> constructor declared as explicit to evade problems
git-svn-id: http://svn.miranda-ng.org/main/trunk@6173 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_system_cpp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index fb9edeb582..243a523d67 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -44,8 +44,8 @@ template<class T> class mir_ptr T* data;
public:
- __inline mir_ptr() : data(NULL) {}
- __inline mir_ptr(T* _p) : data(_p) {}
+ __inline explicit mir_ptr() : data(NULL) {}
+ __inline explicit mir_ptr(T* _p) : data(_p) {}
__inline ~mir_ptr() { mir_free(data); }
__inline T* operator = (T* _p) { if (data) mir_free(data); data = _p; return data; }
__inline T* operator->() const { return data; }
|