Skip to content

Commit 3bee72c

Browse files
authored
fix compile errors
1 parent 91d46f2 commit 3bee72c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

hist/hist/src/TH1.cxx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2513,7 +2513,7 @@ void TH1::ClearUnderflowAndOverflow()
25132513
Double_t TH1::ComputeIntegral(Bool_t onlyPositive, Option_t *option)
25142514
{
25152515
if (fBuffer) BufferEmpty();
2516-
bool useArea = TString(option).ToLower().Contains("width");
2516+
bool useArea = TString(option).Contains("width", TString::kIgnoreCase);
25172517
// delete previously computed integral (if any)
25182518
if (fIntegral) delete [] fIntegral;
25192519

@@ -2526,9 +2526,6 @@ Double_t TH1::ComputeIntegral(Bool_t onlyPositive, Option_t *option)
25262526
fIntegral = new Double_t[nbins + 2];
25272527
Int_t ibin = 0; fIntegral[ibin] = 0;
25282528

2529-
2530-
2531-
y=y*xWidth*yWidth*zWidth;
25322529
for (Int_t binz=1; binz <= nbinsz; ++binz) {
25332530
Double_t zWidth = (fDimension > 2) ? fZaxis.GetBinWidth(binz) : 1;
25342531
for (Int_t biny=1; biny <= nbinsy; ++biny) {

0 commit comments

Comments
 (0)