Changeset 1817 for branches/newfiller


Ignore:
Timestamp:
08/02/10 15:23:42 (14 years ago)
Author:
Takeshi Nakazato
Message:

Changed handling of reader_ attribute.

Location:
branches/newfiller/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/newfiller/src/NROFiller.cpp

    r1812 r1817  
    4242  // get appropriate reader object
    4343  String format ;
    44   if ( (reader_ = getNROReader( filename, format )) == 0 ) {
     44  reader_ = getNROReader( filename, format ) ;
     45  if ( reader_.null() == True ) {
    4546    status = false ;
    4647    return status ;
     
    241242void NROFiller::close()
    242243{
    243   if ( reader_ )
    244     delete reader_ ;
    245   reader_ = 0 ;
     244  if (reader_.null() != False) {
     245    reader_ = 0;
     246  }
     247  table_ = 0;
    246248}
    247249
  • branches/newfiller/src/NROFiller.h

    r1812 r1817  
    5757
    5858    // pointer to the reader
    59     NROReader *reader_ ;
     59    //NROReader *reader_ ;
     60    casa::CountedPtr<NROReader> reader_ ;
    6061};
    6162
Note: See TracChangeset for help on using the changeset viewer.