]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fixes for :
authorjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Dec 2011 10:38:35 +0000 (10:38 +0000)
committerjthaeder <jthaeder@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 12 Dec 2011 10:38:35 +0000 (10:38 +0000)
18171
18170
18169
18168
18167
18166
18165
18164
18162
18160
18159
18158
18157
18156
18155
18154
18150
18149
18148

19 files changed:
TPC/AliClusters.cxx
TPC/AliDigits.cxx
TPC/AliDigitsArray.cxx
TPC/AliTPCCalROC.cxx
TPC/AliTPCCalibViewer.cxx
TPC/AliTPCDDLRawData.cxx
TPC/AliTPCFast.cxx
TPC/AliTPCLaserTracks.cxx
TPC/AliTPCParamCR.cxx
TPC/AliTPCParamSR.cxx
TPC/AliTPCPreprocessorOnline.cxx
TPC/AliTPCROC.cxx
TPC/AliTPCcalibBase.cxx
TPC/AliTPCclusterKr.cxx
TPC/AliTPCclusterMI.cxx
TPC/AliTPCclusterer.cxx
TPC/AliTPCclustererKr.cxx
TPC/AliTPCclustererMI.cxx
TPC/AliTPCvtpr.cxx

index eedd2807fe28c8b10023c04abd3d672e015deb34..fa30eb6ac5c5771b45e4800d691bb6c5240a8922 100644 (file)
@@ -90,6 +90,7 @@ AliClusters & AliClusters::operator =(const AliClusters & param)
   //
   // assignment operator - dummy
   //
+  if (this == &param) return (*this);
   fNclusters=param.fNclusters;
   return (*this);
 }
index 710097e7f5b615db2e99531d6783c0cda07192f8..bdae6baf7a86ba92aa9a72d726dd3186a8424c54 100644 (file)
@@ -95,7 +95,9 @@ AliDigits::AliDigits(const AliDigits& digits)
 
 AliDigits & AliDigits::operator =(const AliDigits & digits)
 {
- //assignment operator
+  //assignment operator
+  if (this == &digits) return (*this); 
+
   fNrows = digits.fNrows;
   fNcols = digits.fNcols;
   if (fElements) delete fElements;
index 086c1adc754b33e96554faf1a92afe546e20d1e7..f579aacf7aa4ae23edb481f253d6b1ec0522c900 100644 (file)
@@ -60,7 +60,8 @@ AliDigitsArray & AliDigitsArray::operator =(const AliDigitsArray & param)
 {
   //
   // dummy
-  //
+  // 
+ if (this == &param) return (*this); 
  fParam = param.fParam;
  return (*this);
 }
index 38df7d3c78c8ff62177e4073c654726231cdc62f..bcd1e7485aa54bb0fe0c72090ac423f7fc34f3e1 100644 (file)
@@ -103,6 +103,7 @@ AliTPCCalROC & AliTPCCalROC::operator =(const AliTPCCalROC & param)
   //
   // assignment operator - dummy
   //
+  if (this == &param) return (*this);
   fData=param.fData;
   return (*this);
 }
index 775e48e3a3643e6aa67e9633477824112947b319..5182ab0a738ba49a7579d2fd5ab414bab9c24a23 100644 (file)
@@ -160,6 +160,8 @@ AliTPCCalibViewer & AliTPCCalibViewer::operator =(const AliTPCCalibViewer & para
    // assignment operator - dummy
    // not yet working!!!
    //
+  if (this == &param) return (*this);
+
    fTree = param.fTree;
    fTreeMustBeDeleted = param.fTreeMustBeDeleted;
    //fFile = new TFile(*(param.fFile));
index 5bde07cc15cb16281c573bb15c260fde0dbd2a52..0358842b5fc10099445ba991be5af9ec94ef4e61 100644 (file)
@@ -47,6 +47,7 @@ AliTPCDDLRawData::AliTPCDDLRawData(const AliTPCDDLRawData &source):
 
 AliTPCDDLRawData& AliTPCDDLRawData::operator=(const AliTPCDDLRawData &source){
   //Assigment operator
+  if (this == &source) return (*this);
   fVerbose=source.fVerbose;
   return *this;
 }
index ff9d5d9ae73e6cb88dd12da0f9ec8365d83a1bf4..98ea578412d8ab2cc565f10fd6640c6d80f5f15d 100644 (file)
@@ -55,6 +55,8 @@ AliTPCFast & AliTPCFast::operator =(const AliTPCFast & param)
   //
   // assignment operator - dummy
   //
+  if (this == &param) return (*this);
+
   fParam=param.fParam;
   return (*this);
 }
index 0986e3a0b1ff0f7db09423b4316b7c69fec1fff0..fee43ab6f4f4551886a3209200806c3ad2678bcf 100644 (file)
@@ -145,6 +145,8 @@ AliTPCLaserTracks & AliTPCLaserTracks::operator=(const AliTPCLaserTracks & param
   //
   // assignment operator - dummy
   //
+  if (this == &param) return (*this);
+
   fPhi=param.fPhi;
   return (*this);
 }
index 4996439497325cf16c3604424fbaf8a91682494b..d00cac8168d58da867b3e97e8b36afc213205e3b 100644 (file)
@@ -74,7 +74,9 @@ AliTPCParamCR & AliTPCParamCR::operator =(const AliTPCParamCR & param)
   //
   // assignment operator - dummy
   //
-   fFacSigma= param.fFacSigma;
+  if (this == &param) return (*this);
+
+  fFacSigma= param.fFacSigma;
   return (*this); 
 }
 AliTPCParamCR::~AliTPCParamCR()
index 2b6ef4072c25789f0c4a1781caa8aaaecfc472ab..521055797955ed45fbf31e399100c17e971bc617 100644 (file)
@@ -85,6 +85,8 @@ AliTPCParamSR & AliTPCParamSR::operator =(const AliTPCParamSR & param)
   //
   // assignment operator - dummy
   //
+  if (this == &param) return (*this);
+
   fZLength=param.fZLength;
   return (*this);
 }
index 4ab8abfbcd54ab2c56fd215ea1d521e7543aeb58..2fc2c80e7be9e902945748beb8b79287b51e7af4 100644 (file)
@@ -104,6 +104,8 @@ AliTPCPreprocessorOnline & AliTPCPreprocessorOnline::operator =(const AliTPCPrep
    // assignment operator - dummy
    // not yet working!!!
    //
+  if (this == &param) return (*this);
+
    fMap = param.fMap;
    std::cout << "AliTPCPreprocessorOnline's assignment operator called, NOT WORKING!!!" << std::endl;
    return (*this);
index 5954f5a98b677a61d1fd7add220a81acd22e6c57..40fb279f42e200ad8ec18ee3d85bf9834e47d9f0 100644 (file)
@@ -396,6 +396,8 @@ AliTPCROC & AliTPCROC::operator =(const AliTPCROC & roc)
   //
   // assignment operator - dummy
   //
+  if (this == &roc) return (*this);
+
   fZLength = roc.fZLength;
   return (*this);
 }
index fac0eb727dde05774d6c309813750ba9b126e36f..e263bbd4e51f7da8c71546bad905dc2af2e6aeda 100644 (file)
@@ -140,6 +140,8 @@ AliTPCcalibBase &AliTPCcalibBase::operator=(const AliTPCcalibBase&calib){
   //
   // operator=
   //
+  if (this == &calib) return (*this);
+
   ((TNamed *)this)->operator=(calib);
   fDebugStreamer=0;
   fStreamLevel=calib.fStreamLevel;
index 61ac9fa33729f57ac981e87d929aed4aecf24b68..90f25e3bca2393fd007092635a0a092c7b3a2134 100644 (file)
@@ -314,7 +314,7 @@ AliTPCclusterKr &AliTPCclusterKr::operator = (const AliTPCclusterKr & param)
 
 
   // 
-
+  if (this == &param) return (*this);
 
   (AliCluster&)(*this) = (AliCluster&)param;
 
index 13f2d2b0e5238840cefe07cee738a5e03093aa12..17f0438c86c795e29bcca9c8f0c4c0b9f3135c9b 100644 (file)
@@ -76,6 +76,7 @@ AliTPCclusterMI & AliTPCclusterMI::operator = (const AliTPCclusterMI & cluster)
   // assignment operator
   // 
   //  AliInfo("Asignment operator\n");
+  if (this == &cluster) return (*this);
 
   (AliCluster&)(*this) = (AliCluster&)cluster;
   fQ    = cluster.fQ;
index 95c82f4d53496de6fdc7a8662799df54aa5eeaa6..f28077c14deede786d0ebca61fe0f801e02bcf50 100644 (file)
@@ -50,7 +50,9 @@ AliTPCclusterer & AliTPCclusterer::operator =(const AliTPCclusterer & param)
   //
   // assignment operator - dummy
   //
-    fPar = param.fPar;
+  if (this == &param) return (*this);
+
+  fPar = param.fPar;
   return (*this);
 }
 //____________________________________________________
index 03c16a048e685c89cfa3e126765811f2f60787f7..442585c04aa07506c1e67c1c37a87020ef96e7bb 100644 (file)
@@ -339,6 +339,8 @@ AliTPCclustererKr & AliTPCclustererKr::operator = (const AliTPCclustererKr & par
   //\r
   // assignment operator\r
   //\r
+  if (this == &param) return (*this);\r
+  \r
   fParam = param.fParam;\r
   fRecoParam = param.fRecoParam;\r
   fRawData = param.fRawData;\r
index 2859f24511a0675d7e75d709300c063d216e8f8c..84933b23d73aacd3c5c6858fddcc49f309138700 100644 (file)
@@ -215,6 +215,8 @@ AliTPCclustererMI & AliTPCclustererMI::operator =(const AliTPCclustererMI & para
   //
   // assignment operator - dummy
   //
+  if (this == &param) return (*this);
+
   fMaxBin=param.fMaxBin;
   return (*this);
 }
index bfc12303e6e1d25e23a2dbe851cf75e6f132160a..4330935acc403e9b5a3924372ebb855f289934ac 100644 (file)
@@ -93,6 +93,8 @@ AliTPCvtpr::~AliTPCvtpr()
 
 AliTPCvtpr & AliTPCvtpr::operator = (const AliTPCvtpr & param)
 {
+  if (this == &param) return (*this);
+
   fAdc  = param.fAdc;
   fTime = param.fTime;
   fPad  = param.fPad;