Changeset 2850 in Sophya for trunk


Ignore:
Timestamp:
Nov 21, 2005, 12:20:52 PM (20 years ago)
Author:
ansari
Message:

correction petit bug + ajout const lies a DataTableRow - Reza 21/11/2005

Location:
trunk/SophyaLib/HiStats
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/basedtable.cc

    r2849 r2850  
    1111   of the table.
    1212*/
    13 DataTableRow::DataTableRow( vector<string>& colnames )
     13DataTableRow::DataTableRow( vector<string> const& colnames )
    1414{
    1515  if (colnames.size() < 1)
     
    204204DataTableRow BaseDataTable::EmptyRow()
    205205{
    206   if (NCols == 0)
     206  if (NCols() == 0)
    207207    throw ParmError("BaseDataTable::EmptyRow() Table has no column !");
    208208  vector<string> nms;
    209209  for(sa_size_t k=0; k<NVar(); k++)  nms.push_back(mNames[k].nom);
    210   return DataTableRow(nms);
     210  DataTableRow row(nms);
     211  return row;
    211212}
    212213
  • trunk/SophyaLib/HiStats/basedtable.h

    r2849 r2850  
    3030public:
    3131//! Constructor - For use by BaseDataTable class
    32   DataTableRow( vector<string>& colnames );
     32  DataTableRow( vector<string> const & colnames );
    3333//! Copy constructor
    3434  DataTableRow( DataTableRow const & a );
Note: See TracChangeset for help on using the changeset viewer.