diff liboctave/CmplxDET.h @ 1881:950825cea083

[project @ 1996-02-05 18:07:21 by jwe]
author jwe
date Mon, 05 Feb 1996 18:07:21 +0000
parents 23aa282707e8
children 1b57120c997b
line wrap: on
line diff
--- a/liboctave/CmplxDET.h	Mon Feb 05 17:10:31 1996 +0000
+++ b/liboctave/CmplxDET.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.
 
@@ -32,9 +32,10 @@
 
 #include "oct-cmplx.h"
 
-class ComplexDET
+class
+ComplexDET
 {
-  friend class ComplexMatrix;
+friend class ComplexMatrix;
 
 public:
 
@@ -48,9 +49,11 @@
 
   ComplexDET& operator = (const ComplexDET& 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;
     }