]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In assignment operator: call Copy function only once
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Dec 2007 10:32:54 +0000 (10:32 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 3 Dec 2007 10:32:54 +0000 (10:32 +0000)
(thanks to Christian for pointing at this)

MUON/mapping/AliMpExMap.cxx

index 7d0c248feb4c693f12bda2f10ac87c71f8d7fa23..7807bdccb5e7b98fbce1c6fda2fb1285314b92aa 100644 (file)
@@ -152,8 +152,7 @@ AliMpExMap&
 AliMpExMap::operator=(const AliMpExMap& rhs)
 {
   /// Assignment operator
-  AliMpExMap tmp(rhs);
-  tmp.Copy(*this);
+  rhs.Copy(*this);
   return *this;
 }