- Timestamp:
- Nov 6, 2015, 10:54:34 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/object/StrongPtr.h
r10765 r10768 138 138 public: 139 139 /// Constructor: Initializes the strong pointer with a null pointer. 140 inline StrongPtr() : pointer_( 0), base_(0)140 inline StrongPtr() : pointer_(nullptr), base_(nullptr) 141 141 { 142 142 } … … 237 237 inline T* operator->() const 238 238 { 239 assert(this->pointer_ != 0);239 assert(this->pointer_ != nullptr); 240 240 return this->pointer_; 241 241 } … … 244 244 inline T& operator*() const 245 245 { 246 assert(this->pointer_ != 0);246 assert(this->pointer_ != nullptr); 247 247 return *this->pointer_; 248 248 } … … 251 251 inline bool operator!() const 252 252 { 253 return (this->pointer_ == 0);253 return (this->pointer_ == nullptr); 254 254 } 255 255
Note: See TracChangeset
for help on using the changeset viewer.