Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2015, 10:54:34 PM (8 years ago)
Author:
landauf
Message:

replace '0' by 'nullptr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/object/StrongPtr.h

    r10765 r10768  
    138138        public:
    139139            /// Constructor: Initializes the strong pointer with a null pointer.
    140             inline StrongPtr() : pointer_(0), base_(0)
     140            inline StrongPtr() : pointer_(nullptr), base_(nullptr)
    141141            {
    142142            }
     
    237237            inline T* operator->() const
    238238            {
    239                 assert(this->pointer_ != 0);
     239                assert(this->pointer_ != nullptr);
    240240                return this->pointer_;
    241241            }
     
    244244            inline T& operator*() const
    245245            {
    246                 assert(this->pointer_ != 0);
     246                assert(this->pointer_ != nullptr);
    247247                return *this->pointer_;
    248248            }
     
    251251            inline bool operator!() const
    252252            {
    253                 return (this->pointer_ == 0);
     253                return (this->pointer_ == nullptr);
    254254            }
    255255
Note: See TracChangeset for help on using the changeset viewer.