diff options
author | Murray Cumming <murrayc@murrayc.com> | 2015-11-23 10:08:19 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2015-11-23 10:08:19 +0100 |
commit | 31bd70e245bafe909f69f8709103f81cd55cd346 (patch) | |
tree | 52940ac11f9f446bddf7b28059e90faf47111cf2 | |
parent | 416ee12a723995c83ed508fc373de22bd3ee9cb7 (diff) |
RefPtr: Use nullptr instead of 0.
-rw-r--r-- | cairomm/refptr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cairomm/refptr.h b/cairomm/refptr.h index f704642..57cff74 100644 --- a/cairomm/refptr.h +++ b/cairomm/refptr.h @@ -208,7 +208,7 @@ template <class T_CppObject> inline RefPtr<T_CppObject>::RefPtr() noexcept : pCppObject_(nullptr), - pCppRefcount_(0) + pCppRefcount_(nullptr) {} template <class T_CppObject> inline @@ -243,7 +243,7 @@ template <class T_CppObject> inline RefPtr<T_CppObject>::RefPtr(T_CppObject* pCppObject) noexcept : pCppObject_(pCppObject), - pCppRefcount_(0) + pCppRefcount_(nullptr) { if(pCppObject) { @@ -408,7 +408,7 @@ bool RefPtr<T_CppObject>::operator!=(const RefPtr<T_CppObject>& src) const noexc template <class T_CppObject> inline RefPtr<T_CppObject>::operator bool() const noexcept { - return (pCppObject_ != 0); + return (pCppObject_ != nullptr); } template <class T_CppObject> inline |