]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
In AliMUONSt1SpecialMotif:
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Nov 2011 15:59:31 +0000 (15:59 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Nov 2011 15:59:31 +0000 (15:59 +0000)
Adding missing assignment operator
(and fixing the Coverity defect COPY_WITHOUT_ASSIGN)

MUON/AliMUONSt1SpecialMotif.cxx
MUON/AliMUONSt1SpecialMotif.h

index 3ffbdc71c084e5c97d1a72ea3b9e918c78b12f0a..66b7ba276b7275ff8c4ae3f03ac50401e55c0fab 100644 (file)
@@ -59,3 +59,16 @@ AliMUONSt1SpecialMotif::~AliMUONSt1SpecialMotif()
 /// Destructor
 }
 
+//__________________________________________________________________________
+AliMUONSt1SpecialMotif& AliMUONSt1SpecialMotif::operator=(const AliMUONSt1SpecialMotif& src)
+{
+/// Assignment operator
+
+  // check assignment to self
+  if (this == &src) return *this;
+
+  fDelta = src.fDelta;
+  fRotAngle = src.fRotAngle;
+
+  return *this;
+}  
index d16f5d33726b5e6106ae9b1fee8d70c74537cc13..bd8cc736036b1b25cdd065e9c16f2a5932a8a205 100644 (file)
@@ -25,6 +25,7 @@ class AliMUONSt1SpecialMotif
     AliMUONSt1SpecialMotif(const TVector2& delta,Double_t rotAngle=0.);
     AliMUONSt1SpecialMotif(const AliMUONSt1SpecialMotif& src);
     virtual ~AliMUONSt1SpecialMotif();
+    AliMUONSt1SpecialMotif& operator=(const AliMUONSt1SpecialMotif& rhs);
              
             /// Return offset
     TVector2 GetDelta()    const {return fDelta;}