Changeset 1033 for branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGFieldContainerType.cpp
- Timestamp:
- 12/19/07 17:56:03 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGFieldContainerType.cpp
r1032 r1033 61 61 62 62 /*! Constructor for a new field container type. 63 * 63 64 \dev 65 The prototype is not held in a RefPtr because that creates circular 66 dependencies between FieldContainer and FieldContainerType headers. 67 Instead the prototypes ref count is handled manually here. 68 \enddev 64 69 */ 65 70 FieldContainerType::FieldContainerType( … … 110 115 { 111 116 if(_pPrototype != NullFC) 112 addRef(_pPrototype);117 _pPrototype->addReference(); 113 118 } 114 119 … … 178 183 void FieldContainerType::terminate(void) 179 184 { 180 subRef(_pPrototype); 185 if(_pPrototype != NullFC) 186 _pPrototype->subReference(); 181 187 } 182 188 … … 194 200 { 195 201 _pPrototype = _fPrototypeCreate(); 196 197 addRef(_pPrototype); 202 203 if(_pPrototype != NullFC) 204 _pPrototype->addReference(); 198 205 } 199 206
