Show
Ignore:
Timestamp:
02/27/08 09:30:29 (9 months ago)
Author:
cneumann
Message:

fixed: Overzealous use of RefPtr? replaced with InternalRefPtr?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/Carsten_PtrWork2/Source/System/Image/WS/OSGImage.cpp

    r1039 r1063  
    681681                           ImagePtr           destination) 
    682682{ 
    683           UChar8      *data       = NULL; 
    684     const UChar8      *sourceData = NULL; 
    685           UInt32       srcI, destI, destSize = 0; 
    686           UInt32       sum; 
    687           Real64       sumReal; 
    688           ImageRefPtr  dest(destination); 
     683          UChar8              *data       = NULL; 
     684    const UChar8              *sourceData = NULL; 
     685          UInt32               srcI, destI, destSize = 0; 
     686          UInt32               sum; 
     687          Real64               sumReal; 
     688          ImageInternalRefPtr  dest(destination); 
    689689 
    690690    if (hasCompressedData()) 
     
    21182118           getDataType(), destDataType)); 
    21192119 
    2120     ImageRefPtr dest(Image::create()); 
     2120    ImageInternalRefPtr dest(Image::create()); 
    21212121 
    21222122    dest->set(getPixelFormat(), 
     
    25052505    if(att == NullFC) 
    25062506    { 
    2507         ImageGenericAttRefPtr newAtt = ImageGenericAtt::create(); 
     2507        ImageGenericAttInternalRefPtr newAtt = ImageGenericAtt::create(); 
    25082508        att = newAtt; 
    25092509 
     
    27052705                     ImagePtr destination) 
    27062706{ 
    2707     ImageRefPtr destImage(destination); 
    2708     bool        retCode   = true; 
     2707    ImageInternalRefPtr destImage(destination); 
     2708    bool                retCode   = true; 
    27092709 
    27102710    if (hasCompressedData()) 
     
    27892789                  ImagePtr destination) 
    27902790{ 
    2791     ImageRefPtr destImage(destination); 
    2792     bool        retCode   = true; 
    2793     UInt32      counter   = 0; 
     2791    ImageInternalRefPtr destImage(destination); 
     2792    bool                retCode   = true; 
     2793    UInt32              counter   = 0; 
    27942794 
    27952795    if (hasCompressedData()) 
     
    29592959    }; 
    29602960 
    2961     Int32       offsetSize[] = { 0, 2, 2, 4, 2, 4, 4, 8 }; 
    2962     ImageRefPtr destImage(destination); 
     2961    Int32               offsetSize[] = { 0, 2, 2, 4, 2, 4, 4, 8 }; 
     2962    ImageInternalRefPtr destImage(destination); 
    29632963 
    29642964    Int32   w = getWidth(), h = getHeight(), d = getDepth();