Mercurial > octave
diff liboctave/array/idx-vector.h @ 21574:ae4d7dfea337
maint: merge stable to default.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 01 Apr 2016 12:57:49 -0400 |
parents | 9f7282acc30f f3f8e1d3e399 |
children | b571fc85953f |
line wrap: on
line diff
--- a/liboctave/array/idx-vector.h Thu Mar 31 14:12:13 2016 -0700 +++ b/liboctave/array/idx-vector.h Fri Apr 01 12:57:49 2016 -0400 @@ -433,19 +433,10 @@ // The shared empty vector representation (for fast default // constructor). - static idx_vector_rep *nil_rep (void) - { - static idx_vector_rep ivr; - return &ivr; - } + static idx_vector_rep *nil_rep (void); // The shared empty vector representation with the error flag set. - static idx_vector_rep *err_rep (void) - { - static idx_vector_rep ivr; - ivr.err = true; - return &ivr; - } + static idx_vector_rep *err_rep (void); // If there was an error in constructing the rep, replace it with // empty vector for safety.