Mercurial > jwe > octave
diff liboctave/util/lo-regexp.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 | 00f796120a6d |
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.cc Wed May 02 14:33:52 2018 -0700 +++ b/liboctave/util/lo-regexp.cc Thu May 03 00:39:14 2018 -0400 @@ -459,7 +459,7 @@ { std::string retval; - regexp::match_data rx_lst = match (buffer); + const regexp::match_data rx_lst = match (buffer); size_t num_matches = rx_lst.size ();