Mercurial > octave
changeset 31354:38b954c0c0c1
avoid possible warning about unused lambda capture
* octave-qscintilla.cc (octave_qscintilla::ctx_menu_run_finished):
Don't pass 'this' to lambda capture. Use [=] to capture variables
that are used.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 27 Oct 2022 09:35:01 -0400 |
parents | fa3ae8fd8449 |
children | 4c6c8f14766c |
files | libgui/src/m-editor/octave-qscintilla.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.cc Wed Oct 26 18:05:19 2022 -0400 +++ b/libgui/src/m-editor/octave-qscintilla.cc Thu Oct 27 09:35:01 2022 -0400 @@ -1041,7 +1041,7 @@ rmgr.remove_tmp_file (tmp_hist); emit interpreter_event - ([this, dbg, auto_repeat] (interpreter& interp) + ([=] (interpreter& interp) { // INTERPRETER THREAD if (dbg)