changeset 28829:6804440d2030

call-stack.cc: small adjustment to lamda expression (bug #59192) * call-stack.cc: Pass "this" pointer by value rather than reference.
author Rik <rik@octave.org>
date Wed, 30 Sep 2020 08:36:29 -0700
parents e58c51b56d76
children 83d1852eb0e6
files libinterp/corefcn/call-stack.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/call-stack.cc	Wed Sep 30 10:06:55 2020 -0400
+++ b/libinterp/corefcn/call-stack.cc	Wed Sep 30 08:36:29 2020 -0700
@@ -975,7 +975,7 @@
         push (tmp_scope);
 
         octave::unwind_action restore_scope
-          ([] (auto& self) { self->pop (); }, this);
+          ([] (auto self) { self->pop (); }, this);
 
         feval ("load", octave_value (file_name), 0);