Changeset 1505


Ignore:
Timestamp:
02/13/09 11:28:39 (15 years ago)
Author:
Malte Marquarding
Message:

use addRow before copyRows consistently; tidy up of getScantable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r1484 r1505  
    130130    ++iter;
    131131  }
     132
    132133  RowAccumulator acc(wtype);
    133134  Vector<Bool> cmask(mask);
     
    285286                                             bool droprows)
    286287{
    287   if (insitu_) return in;
     288  if (insitu_) {
     289    return in;
     290  }
    288291  else {
    289292    // clone
    290     Scantable* tabp = new Scantable(*in, Bool(droprows));
    291     return CountedPtr<Scantable>(tabp);
     293    return CountedPtr<Scantable>(new Scantable(*in, Bool(droprows)));
    292294  }
    293295}
     
    15541556        Table thetab = freqit.table();
    15551557        uInt nrow = tout.nrow();
    1556         //tout.addRow(thetab.nrow());
     1558        tout.addRow(thetab.nrow());
    15571559        TableCopy::copyRows(tout, thetab, nrow, 0, thetab.nrow());
    15581560        ROTableRow row(thetab);
Note: See TracChangeset for help on using the changeset viewer.