Mercurial > octave
changeset 24378:64a85a19f6e3
fix thinko in linking symbol references (bug #52609)
* symrec.h (symbol_record::bind_fwd_rep, symbol_record::unbind_fwd_rep):
Don't recurse, just set/unset the forward scope for this object.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 07 Dec 2017 08:26:19 -0500 |
parents | ea3458c1d884 |
children | 56d1e4d9975e |
files | libinterp/corefcn/symrec.h |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/symrec.h Thu Dec 07 01:31:34 2017 -0500 +++ b/libinterp/corefcn/symrec.h Thu Dec 07 08:26:19 2017 -0500 @@ -495,24 +495,12 @@ void bind_fwd_rep (symbol_scope_rep *fwd_scope, const std::shared_ptr<symbol_record_rep>& fwd_rep) { - if (auto t_fwd_rep = m_fwd_rep.lock ()) - { - t_fwd_rep->bind_fwd_rep (fwd_scope, fwd_rep); - return; - } - m_fwd_scope = fwd_scope; m_fwd_rep = fwd_rep; } void unbind_fwd_rep (void) { - if (auto t_fwd_rep = m_fwd_rep.lock ()) - { - t_fwd_rep->unbind_fwd_rep (); - return; - } - m_fwd_scope = nullptr; m_fwd_rep.reset (); }