minor coverity defect: added protection for self-assignment
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Nov 2011 12:16:53 +0000 (12:16 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Nov 2011 12:16:53 +0000 (12:16 +0000)
HLT/TPCLib/AliHLTTPCClusters.cxx

index edcaaf7..7fc1679 100644 (file)
@@ -67,6 +67,7 @@ AliHLTTPCClusters::AliHLTTPCClusters(const AliHLTTPCClusters& src) :
 AliHLTTPCClusters& AliHLTTPCClusters::operator=(const AliHLTTPCClusters& src)
 {
   // see header file for class documentation
+  if (this==&src) return *this;
   fTotalCharge=src.fTotalCharge;
   fPad = src.fPad;
   fTime = src.fTime;