- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/class/Identifier.h
r10765 r10768 56 56 object->getIdentifier()->getName(); // returns "MyClass" 57 57 58 Identifiable* other = object->getIdentifier()->fabricate( 0); // fabricates a new instance of MyClass58 Identifiable* other = object->getIdentifier()->fabricate(nullptr); // fabricates a new instance of MyClass 59 59 60 60 … … 137 137 138 138 /// Returns true if the Identifier has a Factory. 139 inline bool hasFactory() const { return (this->factory_ != 0); }139 inline bool hasFactory() const { return (this->factory_ != nullptr); } 140 140 141 141 Identifiable* fabricate(Context* context); … … 297 297 298 298 virtual bool canDynamicCastObjectToIdentifierClass(Identifiable* object) const 299 { return dynamic_cast<T*>(object) != 0; }299 { return dynamic_cast<T*>(object) != nullptr; } 300 300 301 301 virtual void destroyObjects(); … … 408 408 void ClassIdentifier<T>::destroyObjects() 409 409 { 410 this->destroyObjects((T*) 0);410 this->destroyObjects((T*)nullptr); 411 411 } 412 412
Note: See TracChangeset
for help on using the changeset viewer.