Show
Ignore:
Timestamp:
01/24/08 15:11:54 (1 year ago)
Author:
cneumann
Message:

fixed: aspect sync for child/parent fields

missing editSField/editMField calls

added: simple test program for MT

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/FieldContainer/Fields/OSGMParentFCPointerField.inl

    r1032 r1041  
    10751075         
    10761076        StorageConstIter sI = source.getRawStorage ().begin(); 
    1077         StorageConstIter sE = source.getRawStorage ().begin(); 
     1077        StorageConstIter sE = source.getRawStorage ().end  (); 
    10781078         
    10791079        StorageIter      tI = this ->editRawStorage().begin(); 
     
    10811081        for(; sI != sE; ++sI, ++tI) 
    10821082        { 
    1083             tI->editPointer        () = convertToCurrentAspect(sI->getPointer()); 
    1084             tI->editChildrenFieldId() = sI->getChildrenFieldId(); 
     1083            ValueType newVal(convertToCurrentAspect(sI->getPointer()), 
     1084                             sI->getChildrenFieldId()                 ); 
     1085                              
     1086            incRefCount(newVal); 
     1087            decRefCount(*tI   ); 
    10851088             
    1086             incRefCount(tI->getPointer())
     1089            *tI = newVal
    10871090        } 
    10881091    }