diff libinterp/corefcn/pr-output.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 98192ec1621f
children 09c071328135
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc	Fri Oct 02 12:58:12 2020 -0400
+++ b/libinterp/corefcn/pr-output.cc	Fri Oct 02 13:25:00 2020 -0400
@@ -3604,7 +3604,7 @@
   frame.protect_var (Vcompact_format);
   frame.protect_var (uppercase_format);
   int prec = output_precision ();
-  frame.add ([prec] (void) { set_output_prec (prec); });
+  frame.add ([=] (void) { set_output_prec (prec); });
 
   format = format_string;   // Initialize with existing value
   while (argc-- > 0)