Mercurial > hg > octave-jordi
diff src/DLD-FUNCTIONS/str2double.cc @ 10381:1aa8b9b8f921
str2double.cc: style fix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 01 Mar 2010 15:10:03 -0500 |
parents | 60acc47c203f |
children | 89f4d7e294cc |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/str2double.cc +++ b/src/DLD-FUNCTIONS/str2double.cc @@ -158,10 +158,14 @@ } static Complex -str2double1 (std::string str) +str2double1 (const std::string& str_arg) { Complex val (0.0, 0.0); + + std::string str = str_arg; + std::string::iterator se = str.end (); + // Remove commas (thousand separators) and spaces. se = std::remove (str.begin (), se, ','); se = std::remove (str.begin (), se, ' ');