Mercurial > hg > octave-lyh
comparison src/load-path.cc @ 9807:645c478aa89d
load-path.cc (load_path::do_find_all_first_of): take advantage of string_vector (std::list<std:string>) constructor
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 11 Nov 2009 15:18:28 -0500 |
parents | 8e345f2fe4d6 |
children | 2cd940306a06 |
comparison
equal
deleted
inserted
replaced
9806:8e345f2fe4d6 | 9807:645c478aa89d |
---|---|
1347 (file_ops::concat (p->dir_name, rel_flist[j])); | 1347 (file_ops::concat (p->dir_name, rel_flist[j])); |
1348 } | 1348 } |
1349 } | 1349 } |
1350 } | 1350 } |
1351 | 1351 |
1352 size_t retsize = retlist.size (); | 1352 return retlist; |
1353 | |
1354 string_vector retval (retsize); | |
1355 | |
1356 for (size_t i = 0; i < retsize; i++) | |
1357 { | |
1358 retval[i] = retlist.front (); | |
1359 | |
1360 retlist.pop_front (); | |
1361 } | |
1362 | |
1363 return retval; | |
1364 } | 1353 } |
1365 | 1354 |
1366 string_vector | 1355 string_vector |
1367 load_path::do_dirs (void) const | 1356 load_path::do_dirs (void) const |
1368 { | 1357 { |