Mercurial > octave-nkf
diff src/ov.cc @ 9728:70925b11ba46
again allow the obsolete syntax for cellfun
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 15 Oct 2009 13:07:44 +0200 |
parents | aea3a3a950e1 |
children | b4fdfee405b5 |
line wrap: on
line diff
--- a/src/ov.cc Thu Oct 15 13:06:48 2009 +0200 +++ b/src/ov.cc Thu Oct 15 13:07:44 2009 +0200 @@ -1118,9 +1118,11 @@ { } -octave_value::octave_value (octave_base_value *new_rep) +octave_value::octave_value (octave_base_value *new_rep, bool borrow) : rep (new_rep) { + if (borrow) + rep->count++; } octave_value::octave_value (octave_base_value *new_rep, int xcount)