]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUON2DMap.cxx
Fixes for change in base class
[u/mrichter/AliRoot.git] / MUON / AliMUON2DMap.cxx
index ff96bec001c8a37fa4fff8296c6e316ed1278515..19551381f41f880c1b3bfe816b13fa520cf72dd5 100644 (file)
@@ -75,8 +75,11 @@ AliMUON2DMap&
 AliMUON2DMap::operator=(const AliMUON2DMap& other)
 {
 /// Assignment operator
-  *fMap = *other.fMap;
-  fOptimizeForDEManu = other.fOptimizeForDEManu;
+  if ( this != &other )
+  {
+    *fMap = *other.fMap;
+    fOptimizeForDEManu = other.fOptimizeForDEManu;
+  }
   return *this;
 }