Show
Ignore:
Timestamp:
01/24/08 15:11:54 (10 months 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/OSGMInternalFCPointerField.inl

    r1032 r1041  
    958958         
    959959        StorageConstIter sI = source.getRawStorage ().begin(); 
    960         StorageConstIter sE = source.getRawStorage ().begin(); 
     960        StorageConstIter sE = source.getRawStorage ().end  (); 
    961961         
    962962        StorageIter      tI = this ->editRawStorage().begin(); 
     
    964964        for(; sI != sE; ++sI, ++tI) 
    965965        { 
    966             *tI = convertToCurrentAspect(*sI); 
    967             incRefCount(*tI); 
     966            ValueType newVal = convertToCurrentAspect(*sI); 
     967         
     968            incRefCount(newVal); 
     969            decRefCount(*tI   ); 
     970             
     971            *tI = newVal; 
    968972        } 
    969973    }