Show
Ignore:
Timestamp:
02/11/08 09:07:03 (1 year ago)
Author:
cneumann
Message:

fixed: compile error (newly created objects not held with ref ptr).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Cluster/Base/OSGRemoteAspect.cpp

    r1030 r1059  
    125125    std::string                         name; 
    126126    FieldContainerFactoryBase          *factory = FieldContainerFactory::the(); 
    127     FieldContainerType                  *fcType; 
    128     FieldContainerPtr                   fcPtr; 
     127    FieldContainerType                 *fcType; 
    129128    BitVector                           mask; 
    130129    RemoteAspectFieldContainerMapper    mapper; 
     
    134133    UInt32                              len; 
    135134 
     135    std::vector<FieldContainerInternalRefPtr> newContainers; 
     136     
    136137    if(_statistics) 
    137138    { 
     
    201202 
    202203                        fcType = factory->findType(localTypeId); 
    203                         fcPtr = fcType->createContainer(); 
     204                        FieldContainerInternalRefPtr fcPtr = 
     205                            fcType->createContainer(); 
    204206                         
     207                        newContainers.push_back(fcPtr); 
     208                             
    205209                        // remove this node, when aspect is removed 
    206210                        _receivedFC.insert(getContainerId(fcPtr)); 
     
    230234                if(getLocalId(remoteId, localId)) 
    231235                { 
    232                     fcPtr = factory->getContainer(localId); 
     236                    FieldContainerPtr fcPtr = factory->getContainer(localId); 
    233237                     
    234238                    fcPtr->copyFromBin(connection, mask); 
     
    266270                if(getLocalId(remoteId, localId)) 
    267271                { 
    268                     fcPtr = factory->getContainer(localId); 
     272                    FieldContainerPtr fcPtr = factory->getContainer(localId); 
    269273 
    270274                    FDEBUG(("RemoteAspect::receiveSync: AddExternalRef: %s ID:%d\n",  
     
    288292                if(getLocalId(remoteId,localId)) 
    289293                { 
    290                     fcPtr = factory->getContainer(localId); 
     294                    FieldContainerPtr fcPtr = factory->getContainer(localId); 
    291295 
    292296                    FDEBUG(("RemoteAspect::receiveSync: SubExternalRef: %s ID:%d\n",