From 53918c82f01363eb4ea57b702b513777b9234cad Mon Sep 17 00:00:00 2001 From: richterm Date: Mon, 28 Nov 2011 09:42:21 +0000 Subject: [PATCH] minor coverity defect: adding self-assignment protection --- HLT/MUON/AliHLTMUONList.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HLT/MUON/AliHLTMUONList.h b/HLT/MUON/AliHLTMUONList.h index 6cfa855927c..fe9ad715148 100644 --- a/HLT/MUON/AliHLTMUONList.h +++ b/HLT/MUON/AliHLTMUONList.h @@ -60,6 +60,7 @@ public: ConstIterator& operator = (const ConstIterator& iter) { + if (this==&iter) return *this; fCurrent = iter.fCurrent; return *this; } @@ -124,6 +125,7 @@ public: Iterator& operator = (const Iterator& iter) { + if (this==&iter) return *this; ConstIterator::operator = (iter); fPrevious = iter.fPrevious; return *this; -- 2.43.5