Mercurial > octave
diff liboctave/util/oct-glob.cc @ 28851:1ac5a76ae91d
use [=] capture default specification where possible
Files affected: Canvas.cc, GLCanvas.cc, file-editor-tab.cc,
file-editor.cc, octave-qscintilla.cc, main-window.cc,
octave-qobject.cc, set-path-model.cc, variable-editor-model.cc,
workspace-view.cc, call-stack.cc, graphics.cc, input.cc,
interpreter.cc, load-path.cc, pr-output.cc, strfns.cc, sysdep.cc,
audiodevinfo.cc, audioread.cc, convhulln.cc, oct-parse.yy, pt-eval.cc,
lo-sysdep.cc, oct-glob.cc, oct-string.cc, and url-transfer.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 02 Oct 2020 13:25:00 -0400 |
parents | 445e5ac1f58d |
children | 43ad651cf5a0 |
line wrap: on
line diff
--- a/liboctave/util/oct-glob.cc Fri Oct 02 12:58:12 2020 -0400 +++ b/liboctave/util/oct-glob.cc Fri Oct 02 13:25:00 2020 -0400 @@ -81,7 +81,7 @@ void *glob_info = octave_create_glob_info_struct (); octave::unwind_action cleanup_glob_info_struct - ([glob_info] () { octave_destroy_glob_info_struct (glob_info); }); + ([=] () { octave_destroy_glob_info_struct (glob_info); }); for (int i = 0; i < npat; i++) { @@ -156,7 +156,7 @@ void *glob_info = octave_create_glob_info_struct (); octave::unwind_action cleanup_glob_info_struct - ([glob_info] () { octave_destroy_glob_info_struct (glob_info); }); + ([=] () { octave_destroy_glob_info_struct (glob_info); }); for (int i = 0; i < npat; i++) {