Corrected assignment operator
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Sep 2003 10:05:35 +0000 (10:05 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Sep 2003 10:05:35 +0000 (10:05 +0000)
(I.Hrivnacova)

MUON/mapping/AliMpPlaneAreaPadIterator.cxx

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