diff liboctave/dbleQRP.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 8a57554f3142
line wrap: on
line diff
--- a/liboctave/dbleQRP.h
+++ b/liboctave/dbleQRP.h
@@ -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,20 +32,24 @@
 
 #include "dbleQR.h"
 
-class QRP : public QR
+class
+QRP : public QR
 {
 public:
 
-  QRP (void) { }
+  QRP (void) : QR (), p () { }
 
   QRP (const Matrix& A, QR::type qr_type = QR::std);
 
-  QRP (const QRP& a) : QR (a) { p = a.p; }
+  QRP (const QRP& a) : QR (a), p (a.p) { }
 
   QRP& operator = (const QRP& a)
     {
-      QR::operator = (a);
-      p = a.p;
+      if (this != &a)
+	{
+	  QR::operator = (a);
+	  p = a.p;
+	}
 
       return *this;
     }