coverity 18019 fix
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 11 Dec 2011 11:37:15 +0000 (11:37 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 11 Dec 2011 11:37:15 +0000 (11:37 +0000)
HLT/global/AliHLTGlobalHistoCollector.h

index bc1665e..f75b239 100644 (file)
@@ -65,10 +65,12 @@ public:
     AliHLTGlobalHCCollection():fMergedObject(0),fHLTDataType(kAliHLTVoidDataType),fInstances(),fNeedToMerge(0){}
     AliHLTGlobalHCCollection( const AliHLTGlobalHCCollection &x):fMergedObject(x.fMergedObject),fHLTDataType(x.fHLTDataType),fInstances(x.fInstances),fNeedToMerge(x.fNeedToMerge){}
     AliHLTGlobalHCCollection &operator=( const AliHLTGlobalHCCollection &x){
-      fMergedObject = x.fMergedObject;
-      fHLTDataType = x.fHLTDataType;
-      fInstances = x.fInstances;   
-      fNeedToMerge = x.fNeedToMerge;
+      if( &x!=this ){
+       fMergedObject = x.fMergedObject;
+       fHLTDataType = x.fHLTDataType;
+       fInstances = x.fInstances;   
+       fNeedToMerge = x.fNeedToMerge;
+      }
       return *this;
     }