Ignore:
Timestamp:
08/01/12 17:40:15 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2825

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: not available

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Minor refactoring.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/EdgeMarker.cpp

    r2615 r2617  
    7272
    7373  // exclude WVR
    74   vector<uInt> wvr ;
     74  Block<uInt> wvr( st_->getIFNos().size() ) ;
     75  uInt n = 0 ;
    7576  {
    7677    ROArrayColumn<uChar> flagCol( st_->table(), "FLAGTRA" ) ;
     
    8283      uInt nchan = flagCol( firstRow ).nelements() ;
    8384      if ( nchan == 4 )
    84         wvr.push_back( current ) ;
     85        wvr[n++] = current ;
    8586      iter.next() ;
    8687    }
    8788  }
    88   wvr_ = Vector<uInt>( wvr ) ;
     89  wvr_.takeStorage( IPosition(1,n), wvr.storage(), COPY ) ;
    8990
    9091  if ( wvr_.nelements() > 0 ) {
Note: See TracChangeset for help on using the changeset viewer.