Coverity
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Dec 2011 11:04:04 +0000 (11:04 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Dec 2011 11:04:04 +0000 (11:04 +0000)
RAW/AliRawReader.cxx
RAW/AliRawReaderMemory.cxx

index 8caccf8..22b182c 100644 (file)
@@ -143,6 +143,7 @@ AliRawReader::AliRawReader(const AliRawReader& rawReader) :
 AliRawReader& AliRawReader::operator = (const AliRawReader& rawReader)
 {
 // assignment operator
+  if(&rawReader == this) return *this;
   fEquipmentIdsIn = rawReader.fEquipmentIdsIn;
   fEquipmentIdsOut = rawReader.fEquipmentIdsOut;
 
index f61f650..9ede85b 100644 (file)
@@ -298,6 +298,7 @@ AliRawReaderMemory::AliRRMBuffer::AliRRMBuffer(const AliRRMBuffer& src)
 AliRawReaderMemory::AliRRMBuffer& AliRawReaderMemory::AliRRMBuffer::operator=(const AliRRMBuffer& src)
 {
   // assignment op
+  if(&src == this) return *this;
   fBuffer=src.fBuffer;
   fBufferSize=src.fBufferSize;
   fEquipmentId=src.fEquipmentId;