Mercurial > octave
diff libinterp/corefcn/help.cc @ 20714:7b6d8c19dab0
Cuddle increment (++) and decrement (--) operators with variable in question.
* help.cc, oct-stream.cc, Array-util.cc, oct-norm.cc, fsolve.m, fzero.m,
annotation.m, rectangle.m, __gnuplot_draw_axes__.m, struct2hdl.m:
Cuddle increment (++) and decrement (--) operators with variable in question.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 18 Nov 2015 16:12:41 -0800 |
parents | 68e3a747ca02 |
children | c22206c1a88f |
line wrap: on
line diff
--- a/libinterp/corefcn/help.cc Wed Nov 18 15:48:27 2015 -0800 +++ b/libinterp/corefcn/help.cc Wed Nov 18 16:12:41 2015 -0800 @@ -783,7 +783,7 @@ { string_vector retval (lst.size ()); int j = 0; - for (map_iter iter = lst.begin (); iter != lst.end (); iter ++) + for (map_iter iter = lst.begin (); iter != lst.end (); iter++) retval[j++] = iter->first; return retval; } @@ -1341,7 +1341,7 @@ int num_seps = 0; for (int i = dir_len; i < filename_len; i++) if (file_ops::is_dir_sep (filename[i])) - num_seps ++; + num_seps++; return (num_seps <= max_allowed_seps); }