Changeset 68 for trunk/src


Ignore:
Timestamp:
07/19/04 10:59:31 (20 years ago)
Author:
mmarquar
Message:

Fixed vaious warnings arising when compiled without warning suprssion.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTable.cc

    r50 r68  
    172172}
    173173
    174 bool SDMemTable::setMask(const std::vector<int>& whichChans) {
     174bool SDMemTable::setMask(std::vector<int> whichChans) {
    175175  ROArrayColumn<uChar> spec(table_, "FLAGTRA");
    176176 
     
    279279}
    280280
    281 void SDMemTable::getSpectrum(Vector<Float>& spectrum, Int whichRow=0) {
     281void SDMemTable::getSpectrum(Vector<Float>& spectrum, Int whichRow) {
    282282  ROArrayColumn<Float> spec(table_, "SPECTRA");
    283283  Array<Float> arr;
     
    298298}
    299299
    300 void SDMemTable::getMask(Vector<Bool>& mask, Int whichRow=0) const {
     300void SDMemTable::getMask(Vector<Bool>& mask, Int whichRow) const {
    301301  ROArrayColumn<uChar> spec(table_, "FLAGTRA");
    302302  Array<uChar> arr;
     
    392392  if (whichIdx > t.nrow() ) {
    393393    cerr << "SDMemTable::getCoordinate - whichIdx out of range" << endl;
    394     return;
     394    return SpectralCoordinate();
    395395  }
    396396  Double rp,rv,inc;
     
    420420  if (whichIdx > t.nrow() ) {
    421421    cerr << "SDMemTable::setCoordinate - whichIdx out of range" << endl;
    422     return;
     422    return False;
    423423  }
    424424  ScalarColumn<Double> rpc(t, "REFPIX");
  • trunk/src/SDMemTable.h

    r50 r68  
    9696  virtual bool setPol(Int whichPol=0);   
    9797  //sets the user mask
    98   virtual bool setMask(const std::vector<int>& whichChans);
     98  virtual bool setMask(std::vector<int> whichChans);
    9999 
    100100  // return the currently selected values
Note: See TracChangeset for help on using the changeset viewer.