Mercurial > hg > octave-nkf
diff 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 |
line wrap: on
line diff
--- a/src/load-path.cc +++ b/src/load-path.cc @@ -1349,18 +1349,7 @@ } } - size_t retsize = retlist.size (); - - string_vector retval (retsize); - - for (size_t i = 0; i < retsize; i++) - { - retval[i] = retlist.front (); - - retlist.pop_front (); - } - - return retval; + return retlist; } string_vector