coverity 18015 fix
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 11 Dec 2011 11:40:11 +0000 (11:40 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 11 Dec 2011 11:40:11 +0000 (11:40 +0000)
HLT/TPCLib/AliHLTTPCConfMapPoint.cxx

index 7c0acb7..a74614d 100644 (file)
@@ -145,6 +145,8 @@ AliHLTTPCConfMapPoint::AliHLTTPCConfMapPoint(const AliHLTTPCConfMapPoint& src)
 
 AliHLTTPCConfMapPoint& AliHLTTPCConfMapPoint::operator=(const AliHLTTPCConfMapPoint& src)
 {
+  if( &src ==this ) return *this;
+
   fHitNumber=src.fHitNumber;
   fTrackNumber=src.fTrackNumber;
   fNextHitNumber=src.fNextHitNumber;