Mercurial > hg > octave-terminal
changeset 1693:55699892527f
[project @ 1996-01-07 01:49:41 by jwe]
author | jwe |
---|---|
date | Sun, 07 Jan 1996 01:49:41 +0000 |
parents | ddfed708d842 |
children | bad55bbcaf46 |
files | liboctave/Array.h |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -74,6 +74,7 @@ { data = d; len = l; + count = 1; } public: @@ -82,6 +83,7 @@ { data = 0; len = 0; + count = 1; } ArrayRep (int n); @@ -118,7 +120,6 @@ Array (T *d, int l) { rep = new ArrayRep<T> (d, l); - rep->count = 1; #ifdef HEAVYWEIGHT_INDEXING idx = 0; @@ -132,7 +133,6 @@ Array (void) { rep = new ArrayRep<T> (); - rep->count = 1; #ifdef HEAVYWEIGHT_INDEXING idx = 0; @@ -144,7 +144,6 @@ Array (int n) { rep = new ArrayRep<T> (n); - rep->count = 1; #ifdef HEAVYWEIGHT_INDEXING idx = 0; @@ -180,7 +179,6 @@ { --rep->count; rep = new ArrayRep<T> (*rep); - rep->count = 1; } return rep->elem (n); }