Changeset 12512

Show
Ignore:
Timestamp:
10/23/07 09:55:47 (1 year ago)
Author:
mloskot
Message:

Ported fix replacingm C assert with CPLAssert in pcraster driver (Ticket #1830).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/frmts/pcraster/pcrasterdataset.cpp

    r10646 r12512  
    308308  d_cellSize = static_cast<double>(RgetCellSize(d_map)); 
    309309  d_cellRepresentation = RgetUseCellRepr(d_map); 
    310   assert(d_cellRepresentation != CR_UNDEFINED); 
     310  CPLAssert(d_cellRepresentation != CR_UNDEFINED); 
    311311  d_valueScale = RgetValueScale(d_map); 
    312   assert(d_valueScale != VS_UNDEFINED); 
     312  CPLAssert(d_valueScale != VS_UNDEFINED); 
    313313  d_missingValue = ::missingValue(d_cellRepresentation); 
    314314 
  • branches/1.4/gdal/frmts/pcraster/pcrasterutil.cpp

    r10056 r12512  
    220220    } 
    221221    default: { 
    222       assert(false); 
     222      CPLAssert(false); 
    223223      break; 
    224224    } 
     
    312312    case CR_REAL4: { 
    313313      // using <limits> breaks on gcc 2.95 
    314       // assert(std::numeric_limits<REAL4>::is_iec559); 
     314      // CPLAssert(std::numeric_limits<REAL4>::is_iec559); 
    315315      // missingValue = -std::numeric_limits<REAL4>::max(); 
    316316      missingValue = -FLT_MAX; 
     
    318318    } 
    319319    default: { 
    320       assert(false); 
     320      CPLAssert(false); 
    321321      break; 
    322322    } 
     
    368368    } 
    369369    default: { 
    370       assert(false); 
     370      CPLAssert(false); 
    371371      break; 
    372372    } 
     
    405405    } 
    406406    default: { 
    407       assert(false); 
     407      CPLAssert(false); 
    408408      break; 
    409409    }