Mercurial > octave
diff libgui/src/dialog.cc @ 25342:416856765a55
be more careful with using auto in place of explicit const iterator decls
* dialog.cc, m-editor/file-editor.cc, octave-qt-link.cc,
call-stack.cc, debug.cc, genprops.awk, graphics.cc, gtk-manager.cc,
gtk-manager.h, load-path.cc, oct-map.cc, oct-stream.cc, regexp.cc,
symscope.h, symtab.h, variables.cc, ov-class.cc, ov-classdef.cc,
ov-fcn-handle.cc, ov-struct.cc, bp-table.cc, jit-ir.cc,
jit-typeinfo.cc, pt-jit.cc, lo-regexp.cc: Only replace explicit const
iterator decls with auto keyword if corresponding object is const.
Otherwise, tag with a fixme comment.
* lo-regexp.h (regexp::match_data::named_patterns): Now const.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 03 May 2018 00:39:14 -0400 |
parents | 3ff9192b676e |
children | 15460ae5462d |
line wrap: on
line diff
--- a/libgui/src/dialog.cc Wed May 02 14:33:52 2018 -0700 +++ b/libgui/src/dialog.cc Thu May 03 00:39:14 2018 -0400 @@ -230,8 +230,7 @@ selector = view->selectionModel (); int i = 0; - for (auto it = initial.begin (); - it != initial.end (); it++) + for (auto it = initial.begin (); it != initial.end (); it++) { QModelIndex idx = m_model->index (initial.value (i++) - 1, 0, QModelIndex ());