Show
Ignore:
Timestamp:
12/12/07 18:00:42 (1 year ago)
Author:
cneumann
Message:

added: generic interface
changed: factory functions return RefPtr?

The unittests don't pass right now, because of the change
to the factory functions, which leads to containers
being immediately destroyed as they are not assigned to
a RefPtr?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Base/OSGFieldBundleAttachment.cpp

    r870 r1032  
    6262        Field::MFDefaultFlags, 
    6363        static_cast<FieldEditMethodSig>(&Self::invalidEditField), 
    64         static_cast<FieldGetMethodSig >(&Self::getHandleParents), 
    65         NULL); 
     64        static_cast<FieldGetMethodSig >(&Self::getHandleParents) ); 
    6665 
    6766    oType.addInitialDesc(pDesc); 
     
    7675        Field::SFDefaultFlags, 
    7776        static_cast<FieldEditMethodSig>(&Self::editInternalHandler), 
    78         static_cast<FieldGetMethodSig >(&Self::getInternalHandler ), 
    79         NULL); 
     77        static_cast<FieldGetMethodSig >(&Self::getInternalHandler ) ); 
    8078 
    8179    oType.addInitialDesc(pDesc); 
     
    179177    SFBool::EditHandlePtr returnValue( 
    180178        new  SFBool::EditHandle( 
    181              &_sfInternal,  
     179             &_sfInternal, 
    182180             this->getType().getFieldDesc(InternalFieldId))); 
    183181