Changeset 10578 for code/branches/core7/src/libraries/core/object
- Timestamp:
- Sep 9, 2015, 4:10:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/object/StrongPtr.h
r10555 r10578 142 142 } 143 143 144 /// Constructor: Initializes the strong pointer with a pointer to an object. @param pointer The pointer @param bAddRef If true, the reference counter is increased. Don't set this to false unless you know exactly what you're doing! (for example to avoid circular references if the @c this pointer of the possessing object is stored)145 inline StrongPtr(T* pointer , bool bAddRef = true) : pointer_(pointer), base_(pointer)146 { 147 if (this->base_ && bAddRef)144 /// Constructor: Initializes the strong pointer with a pointer to an object. @param pointer The pointer 145 inline StrongPtr(T* pointer) : pointer_(pointer), base_(pointer) 146 { 147 if (this->base_) 148 148 this->base_->incrementReferenceCount(); 149 149 }
Note: See TracChangeset
for help on using the changeset viewer.