Mercurial > hg > octave-nkf
changeset 1701:ce16950b6b02
[project @ 1996-01-07 03:15:11 by jwe]
author | jwe |
---|---|
date | Sun, 07 Jan 1996 03:15:11 +0000 |
parents | e4d94a757f01 |
children | eec2def45457 |
files | liboctave/Array.h |
diffstat | 1 files changed, 4 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -72,21 +72,11 @@ protected: - ArrayRep (T *d, int l) - { - data = d; - len = l; - count = 1; - } + ArrayRep (T *d, int l) : data (d), len (l), count (1) { } public: - ArrayRep (void) - { - data = 0; - len = 0; - count = 1; - } + ArrayRep (void) : data (0), len (0), count (1) { } ArrayRep (int n); @@ -295,7 +285,7 @@ Array2<T>& operator = (const Array2<T>& a) { - if (this != &a) + if (this != &a && rep != a.rep) { Array<T>::operator = (a); d1 = a.d1; @@ -389,7 +379,7 @@ Array3<T>& operator = (const Array3<T>& a) { - if (this != &a) + if (this != &a && rep != a.rep) { Array<T>::operator = (a); d1 = a.d1;