Changeset 1412
- Timestamp:
- 01/31/08 15:17:03 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/MathUtils.cpp
r1382 r1412 85 85 { 86 86 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) { 89 89 out.push_back(*it); 90 90 } … … 95 95 { 96 96 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; 101 101 } 102 102 return out;
Note:
See TracChangeset
for help on using the changeset viewer.