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

index f46a39a..3883b6a 100644 (file)
@@ -158,6 +158,12 @@ Hypersurface::Hypersurface(void) {
   Hypersurface("./");
 }
 
+Hypersurface::Hypersurface(const Hypersurface &aSurf)
+{
+  i = aSurf.i;
+  Hypersurface("./");
+  
+}
 
 Hypersurface::~Hypersurface(void) {
   for(i=0;i<Np;i++) {
index 91aa033..151c877 100644 (file)
@@ -35,6 +35,7 @@ class Hypersurface {
     // constructor
     Hypersurface(const char *dirname);
     Hypersurface(void);
+    Hypersurface(const Hypersurface &aSurf);
     // destructor
     ~Hypersurface(void);
     // variables