From c4d5d74494a6daa3deec182b1a7639fdaa2e1a01 Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Wed, 23 Apr 2008 09:14:23 +0000
Subject: [PATCH] Fix shadowed variables

git-svn-id: http://root.cern.ch/svn/root/trunk@23415 27541ba8-7e3a-0410-8455-c3a389f83636
---
 hist/hist/src/TH1.cxx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/hist/hist/src/TH1.cxx b/hist/hist/src/TH1.cxx
index 44d646bc237..eeae73d3c85 100644
--- a/hist/hist/src/TH1.cxx
+++ b/hist/hist/src/TH1.cxx
@@ -4788,20 +4788,20 @@ Long64_t TH1::Merge(TCollection *li)
          }
       }
       if (allHaveLabels) {
-         THashList* labels=h->GetXaxis()->GetLabels();
-         Bool_t haveOneLabel=kFALSE;
-         if (labels) {
-            TIter iL(labels);
+         THashList* hlabels=h->GetXaxis()->GetLabels();
+         Bool_t hasOneLabel=kFALSE;
+         if (hlabels) {
+            TIter iL(hlabels);
             TObjString* lb;
             while ((lb=(TObjString*)iL())) {
-               haveOneLabel |= (lb && lb->String().Length());
+               hasOneLabel |= (lb && lb->String().Length());
                if (!allLabels.FindObject(lb)) {
                   allLabels.Add(lb);
                   same = kFALSE;
                }
             }
          }
-         allHaveLabels&=(labels && haveOneLabel);
+         allHaveLabels&=(labels && hasOneLabel);
          if (!allHaveLabels)
             Warning("Merge","Not all histograms have labels. I will ignore labels,"
             " falling back to bin numbering mode.");
@@ -5241,7 +5241,7 @@ TH1 *TH1::Rebin(Int_t ngroup, const char*newname, const Double_t *xbins)
 
    if(!xbins && (fXaxis.GetXbins()->GetSize() > 0)){ // variable bin sizes
       Double_t *bins = new Double_t[newbins+1];
-      for(Int_t i = 0; i <= newbins; ++i) bins[i] = fXaxis.GetBinLowEdge(1+i*ngroup);
+      for(i = 0; i <= newbins; ++i) bins[i] = fXaxis.GetBinLowEdge(1+i*ngroup);
       hnew->SetBins(newbins,bins); //this also changes errors array (if any)
       delete [] bins;
    } else if (xbins) {
-- 
GitLab