summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/lzma/CPP/Common/AutoPtr.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/lzma/CPP/Common/AutoPtr.h')
-rw-r--r--3rdparty/lzma/CPP/Common/AutoPtr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/3rdparty/lzma/CPP/Common/AutoPtr.h b/3rdparty/lzma/CPP/Common/AutoPtr.h
index 006d315512b..0be8a7a41d2 100644
--- a/3rdparty/lzma/CPP/Common/AutoPtr.h
+++ b/3rdparty/lzma/CPP/Common/AutoPtr.h
@@ -1,13 +1,13 @@
// Common/AutoPtr.h
-#ifndef __COMMON_AUTOPTR_H
-#define __COMMON_AUTOPTR_H
+#ifndef ZIP7_INC_COMMON_AUTOPTR_H
+#define ZIP7_INC_COMMON_AUTOPTR_H
template<class T> class CMyAutoPtr
{
T *_p;
public:
- CMyAutoPtr(T *p = 0) : _p(p) {}
+ CMyAutoPtr(T *p = NULL) : _p(p) {}
CMyAutoPtr(CMyAutoPtr<T>& p): _p(p.release()) {}
CMyAutoPtr<T>& operator=(CMyAutoPtr<T>& p)
{
@@ -21,10 +21,10 @@ public:
T* release()
{
T *tmp = _p;
- _p = 0;
+ _p = NULL;
return tmp;
}
- void reset(T* p = 0)
+ void reset(T* p = NULL)
{
if (p != _p)
delete _p;