]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONObjectPair.cxx
Adding the cascade performance task (Antonin Maire)
[u/mrichter/AliRoot.git] / MUON / AliMUONObjectPair.cxx
index 6fc64a8051cc162f61a157f0db03b076bcd36439..38b39ed8fba925de630d2edd524c7e3df9ebb1ee 100644 (file)
@@ -88,9 +88,10 @@ AliMUONObjectPair&
 AliMUONObjectPair::operator=(const AliMUONObjectPair& other)
 {
   /// assignement operator
-  AliDebug(1,"");
-  AliMUONObjectPair pair(other);
-  pair.Copy(*this);
+  if ( this != &other)
+  {
+    other.Copy(*this);
+  }
   return *this;
 }