#include "AliLog.h"
#include <Riostream.h>
+//-----------------------------------------------------------------------------
/// \class AliMUONObjectPair
///
/// The equivalent of a std::pair<TObject*,TObject*> ;-)
/// we decide on the ownership of the first and/or second object...
///
/// \author Laurent Aphecetche
+//-----------------------------------------------------------------------------
/// \cond CLASSIMP
ClassImp(AliMUONObjectPair)
AliMUONObjectPair::operator=(const AliMUONObjectPair& other)
{
/// assignement operator
- AliDebug(1,"");
- AliMUONObjectPair pair(other);
- pair.Copy(*this);
+ if ( this != &other)
+ {
+ other.Copy(*this);
+ }
return *this;
}