Mercurial > octave-nkf
diff liboctave/dbleDET.h @ 1881:950825cea083
[project @ 1996-02-05 18:07:21 by jwe]
author | jwe |
---|---|
date | Mon, 05 Feb 1996 18:07:21 +0000 |
parents | dc527156c38c |
children | 1b57120c997b |
line wrap: on
line diff
--- a/liboctave/dbleDET.h Mon Feb 05 17:10:31 1996 +0000 +++ b/liboctave/dbleDET.h Mon Feb 05 18:07:21 1996 +0000 @@ -1,7 +1,7 @@ // -*- C++ -*- /* -Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton +Copyright (C) 1996 John W. Eaton This file is part of Octave. @@ -30,7 +30,8 @@ class ostream; -class DET +class +DET { friend class Matrix; @@ -46,9 +47,11 @@ DET& operator = (const DET& a) { - det[0] = a.det[0]; - det[1] = a.det[1]; - + if (this != &a) + { + det[0] = a.det[0]; + det[1] = a.det[1]; + } return *this; }