Update master to aliroot
[u/mrichter/AliRoot.git] / TTherminator / Therminator / ReadPar.cxx
index 8f3bcdd686fef1dc93700f54776b9f3a63c1a00e..1251653cfa76bb6a0a6de38dd190e87bd9739ffe 100644 (file)
@@ -49,6 +49,17 @@ ReadPar::ReadPar(const ReadPar &aPar)
   readFile(fname);
 }
 
+ReadPar& ReadPar::operator=(const ReadPar& aPar)
+{
+  if (this != &aPar) {
+    delete fname;
+    fname = strdup(aPar.fname);
+    readFile(fname);
+  }
+  
+  return *this;
+}
+
 ReadPar::~ReadPar()
 {
   if (fname)