comparison libgui/src/m-editor/octave-qscintilla.cc @ 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 a1c2ea6deaa4
children ad014fc78bd6 c6d54dd31a7e
comparison
equal deleted inserted replaced
31353:fa3ae8fd8449 31354:38b954c0c0c1
1039 settings->setValue (ed_show_dbg_file.key, show_dbg_file); 1039 settings->setValue (ed_show_dbg_file.key, show_dbg_file);
1040 rmgr.remove_tmp_file (tmp_file); 1040 rmgr.remove_tmp_file (tmp_file);
1041 rmgr.remove_tmp_file (tmp_hist); 1041 rmgr.remove_tmp_file (tmp_hist);
1042 1042
1043 emit interpreter_event 1043 emit interpreter_event
1044 ([this, dbg, auto_repeat] (interpreter& interp) 1044 ([=] (interpreter& interp)
1045 { 1045 {
1046 // INTERPRETER THREAD 1046 // INTERPRETER THREAD
1047 if (dbg) 1047 if (dbg)
1048 Fauto_repeat_debug_command (interp, ovl (auto_repeat)); 1048 Fauto_repeat_debug_command (interp, ovl (auto_repeat));
1049 }); 1049 });