Update master to aliroot
[u/mrichter/AliRoot.git] / TTherminator / Therminator / ReadPar.cxx
index 2242e2518a54fe8a9aa70c880cd1a883760f245b..1251653cfa76bb6a0a6de38dd190e87bd9739ffe 100644 (file)
@@ -43,6 +43,23 @@ ReadPar::ReadPar(const char *aFName)
   readFile(aFName);
 }
 
+ReadPar::ReadPar(const ReadPar &aPar)
+{
+  fname = strdup(aPar.fname);
+  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)
@@ -115,7 +132,7 @@ STR ReadPar::getPar(const char *name) throw(STR)
       }
   throw *(new STR(name));
 
-  return TString("");
+  //  return TString("");
 }