Corrected assignment operator
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpPlaneAreaPadIterator.cxx
index 0ed2925e3aa470e3e198e52604da34653d552718..5370d60aae1dbae00c0e53b5f44e095bf4e3fd5b 100755 (executable)
@@ -39,7 +39,7 @@ AliMpPlaneAreaPadIterator::AliMpPlaneAreaPadIterator(
                                 const AliMpPlaneAreaPadIterator& right)
   : AliMpVPadIterator(right)
 {
-// copy constructor
+// Copy constructor
  
   Fatal("Copy constructor", "Not implemented");
 }
@@ -57,7 +57,7 @@ AliMpPlaneAreaPadIterator::AliMpPlaneAreaPadIterator()
 //______________________________________________________________________________
 AliMpPlaneAreaPadIterator::~AliMpPlaneAreaPadIterator()
 {
-// destructor
+// Destructor
 
   // delete created iterators here
 }
@@ -72,7 +72,11 @@ AliMpPlaneAreaPadIterator::operator = (const AliMpPlaneAreaPadIterator& right)
 {
 // Assignement operator
 
-  Fatal("operator =", "Not implemented.");
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+
   return *this;
 }