]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONObjectPair.cxx
sync with GSI svn
[u/mrichter/AliRoot.git] / MUON / AliMUONObjectPair.cxx
index 6fc64a8051cc162f61a157f0db03b076bcd36439..f4f7ad45a6f824cab02ac90ccfe3aa1982bad403 100644 (file)
@@ -34,6 +34,8 @@
 /// \author Laurent Aphecetche
 //-----------------------------------------------------------------------------
 
+using std::cout;
+using std::endl;
 /// \cond CLASSIMP
 ClassImp(AliMUONObjectPair)
 /// \endcond
@@ -88,9 +90,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;
 }