Mercurial > octave
diff libinterp/parse-tree/oct-parse.yy @ 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 | d5efdf5cfc56 |
children | 43ad651cf5a0 |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Fri Oct 02 12:58:12 2020 -0400 +++ b/libinterp/parse-tree/oct-parse.yy Fri Oct 02 13:25:00 2020 -0400 @@ -4996,10 +4996,7 @@ return octave_value (); } - unwind_action act ([ffile] (void) - { - fclose (ffile); - }); + unwind_action act ([=] (void) { ::fclose (ffile); }); parser parser (ffile, interp); @@ -5798,7 +5795,7 @@ // the eval, then the message is stored in the exception object and we // will display it later, after the buffers have been restored. - octave::unwind_action act ([old_out_buf, old_err_buf] (void) + octave::unwind_action act ([=] (void) { octave_stdout.rdbuf (old_out_buf); std::cerr.rdbuf (old_err_buf);