diff options
Diffstat (limited to 'Source/cm_auto_ptr.hxx')
-rw-r--r-- | Source/cm_auto_ptr.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cm_auto_ptr.hxx b/Source/cm_auto_ptr.hxx index 773602a..1ac9220 100644 --- a/Source/cm_auto_ptr.hxx +++ b/Source/cm_auto_ptr.hxx @@ -112,7 +112,7 @@ public: * * auto_ptr<X> ptr(new X()); */ - explicit auto_ptr(X* p = CM_NULLPTR) throw() + explicit auto_ptr(X* p = nullptr) throw() : x_(p) { } @@ -154,7 +154,7 @@ public: X* release() throw() { X* x = this->x_; - this->x_ = CM_NULLPTR; + this->x_ = nullptr; return x; } |