From 4cc7af7dfe3e81cfc128da5b03f9c2830c03f5f2 Mon Sep 17 00:00:00 2001 From: fbellini Date: Mon, 18 Feb 2013 10:22:37 +0000 Subject: [PATCH] Fix for coverity --- PWGLF/RESONANCES/AliRsnCutSetDaughterParticle.h | 2 +- PWGLF/RESONANCES/AliRsnCutV0.cxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PWGLF/RESONANCES/AliRsnCutSetDaughterParticle.h b/PWGLF/RESONANCES/AliRsnCutSetDaughterParticle.h index e1b2e1ff416..43888e930a3 100644 --- a/PWGLF/RESONANCES/AliRsnCutSetDaughterParticle.h +++ b/PWGLF/RESONANCES/AliRsnCutSetDaughterParticle.h @@ -50,7 +50,7 @@ public: void SetAODTrackCutFilterBit(Int_t ibit) {fAODTrkCutFilterBit=ibit; return;} //getters const char *GetAppliedDaughterCutSetName() { return GetName();} - const Int_t GetAppliedDaughterCutSetId() { return fAppliedCutSetID;} + Int_t GetAppliedDaughterCutSetId() { return fAppliedCutSetID;} const AliRsnCutTrackQuality *GetQualityCut() {return fCutQuality;}; private: diff --git a/PWGLF/RESONANCES/AliRsnCutV0.cxx b/PWGLF/RESONANCES/AliRsnCutV0.cxx index c31614e4d46..9f5b276f3d9 100644 --- a/PWGLF/RESONANCES/AliRsnCutV0.cxx +++ b/PWGLF/RESONANCES/AliRsnCutV0.cxx @@ -103,6 +103,8 @@ AliRsnCutV0 &AliRsnCutV0::operator=(const AliRsnCutV0 ©) // Assignment operator. // Just copy all data member values. // + if (this == ©) + return *this; fHypothesis = copy.fHypothesis; fMass = copy.fMass; fTolerance = copy.fTolerance; -- 2.43.0