]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity Fix:
authormiweber <m.weber@cern.ch>
Tue, 4 Nov 2014 09:04:12 +0000 (10:04 +0100)
committermiweber <m.weber@cern.ch>
Tue, 4 Nov 2014 10:33:41 +0000 (11:33 +0100)
- variable 'pt' set but not used [-Wunused-but-set-variable]

PWGCF/EBYE/LRC/AliLRCAnalysis.cxx [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a690c16..9ae8abf
@@ -466,7 +466,6 @@ void AliLRCAnalysis::SetErrors(TH2D* source, const char *name, double ptd, TH2D*
 //Calculate arrors for ptn and ptpt
        TProfile* profX = (TProfile*) source->ProfileX(name, 1, source->GetNbinsY());
        fdptb = ptd;
-       double pt;
        for(int i = 0; i < profX->GetNbinsX(); i++)             
        {
                fPrAbs->SetBinContent(i, profX->GetBinContent(i));
@@ -485,7 +484,6 @@ void AliLRCAnalysis::SetErrors(TH2D* source, const char *name, double ptd, const
 //Calculate arrors for ptn and ptpt
        TProfile* profX = (TProfile*) source->ProfileX(name, 1, source->GetNbinsY());
        fdptb = ptd;
-       double pt;
        for(int i = 0; i < profX->GetNbinsX(); i++)             
        {
                fPrAbs->SetBinContent(i, profX->GetBinContent(i));