summaryrefslogtreecommitdiffstats
path: root/Source/cm_auto_ptr.hxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-16 21:01:40 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-09-16 21:01:40 (GMT)
commit782fcbb92e096a28f899c89eed6fe23f29cd997c (patch)
tree3700d9b442648c39ef1a4b0c3bdee45d5f327943 /Source/cm_auto_ptr.hxx
parent809ca6c81fa23cec111a9e97529d71538c55f9eb (diff)
downloadCMake-782fcbb92e096a28f899c89eed6fe23f29cd997c.zip
CMake-782fcbb92e096a28f899c89eed6fe23f29cd997c.tar.gz
CMake-782fcbb92e096a28f899c89eed6fe23f29cd997c.tar.bz2
Use CM_NULLPTR
Diffstat (limited to 'Source/cm_auto_ptr.hxx')
-rw-r--r--Source/cm_auto_ptr.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cm_auto_ptr.hxx b/Source/cm_auto_ptr.hxx
index 2cd35c3..f6c4362 100644
--- a/Source/cm_auto_ptr.hxx
+++ b/Source/cm_auto_ptr.hxx
@@ -12,7 +12,7 @@
#ifndef CM_AUTO_PTR_HXX
#define CM_AUTO_PTR_HXX
-#include <cmsys/Configure.hxx>
+#include <cmConfigure.h>
// FIXME: Use std::auto_ptr on compilers that do not warn about it.
#define CM_AUTO_PTR cm::auto_ptr
@@ -115,7 +115,7 @@ public:
*
* auto_ptr<X> ptr(new X());
*/
- explicit auto_ptr(X* p = 0) throw()
+ explicit auto_ptr(X* p = CM_NULLPTR) throw()
: x_(p)
{
}
@@ -157,7 +157,7 @@ public:
X* release() throw()
{
X* x = this->x_;
- this->x_ = 0;
+ this->x_ = CM_NULLPTR;
return x;
}