Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Dec 2011 12:34:14 +0000 (12:34 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Dec 2011 12:34:14 +0000 (12:34 +0000)
TTherminator/Therminator/Hypersurface.cxx
TTherminator/Therminator/Hypersurface.h

index 3883b6a..897d0b6 100644 (file)
@@ -165,6 +165,16 @@ Hypersurface::Hypersurface(const Hypersurface &aSurf)
   
 }
 
+Hypersurface& Hypersurface::operator=(const Hypersurface &aSurf)
+{
+  if (this != &aSurf) {
+    i = aSurf.i;
+    Hypersurface("./");
+  }
+  
+  return *this;
+}
+
 Hypersurface::~Hypersurface(void) {
   for(i=0;i<Np;i++) {
     delete[] aArr[i];
index 151c877..25ca4cc 100644 (file)
@@ -36,6 +36,7 @@ class Hypersurface {
     Hypersurface(const char *dirname);
     Hypersurface(void);
     Hypersurface(const Hypersurface &aSurf);
+    Hypersurface& operator=(const Hypersurface &aSurf);
     // destructor
     ~Hypersurface(void);
     // variables