From eab27995b071db29994f7d08c5a2ae6c956dddd3 Mon Sep 17 00:00:00 2001 From: akisiel Date: Mon, 5 Dec 2011 12:34:14 +0000 Subject: [PATCH] Fix Coverity --- TTherminator/Therminator/Hypersurface.cxx | 10 ++++++++++ TTherminator/Therminator/Hypersurface.h | 1 + 2 files changed, 11 insertions(+) diff --git a/TTherminator/Therminator/Hypersurface.cxx b/TTherminator/Therminator/Hypersurface.cxx index 3883b6a4272..897d0b672f6 100644 --- a/TTherminator/Therminator/Hypersurface.cxx +++ b/TTherminator/Therminator/Hypersurface.cxx @@ -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