Changeset 1412 for trunk/src


Ignore:
Timestamp:
01/31/08 15:17:03 (17 years ago)
Author:
Malte Marquarding
Message:

use stl type array iterators as in the new version of casacore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MathUtils.cpp

    r1382 r1412  
    8585{
    8686  std::vector<std::string> out;
    87   VectorSTLIterator<String> it(in);
    88   for (uInt i=0; it != in.end(); ++it,++i) {
     87  out.reserve(in.nelements());
     88  for (Array<String>::const_iterator it = in.begin(); it != in.end(); ++it) {
    8989    out.push_back(*it);
    9090  }
     
    9595{
    9696  Vector<String> out(in.size());
    97   uInt i=0;
    98   std::vector<std::string>::const_iterator it;
    99   for (it=in.begin();it != in.end();++it,++i) {
    100     out[i] = casa::String(*it);
     97  Array<String>::iterator oit = out.begin();
     98  for (std::vector<std::string>::const_iterator it=in.begin() ;
     99       it != in.end(); ++it,++oit) {
     100    *oit = *it;
    101101  }
    102102  return out;
Note: See TracChangeset for help on using the changeset viewer.