From c56dee5a23ef74640d72825dbe420c506575744f Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Wed, 18 Nov 2009 22:52:36 +0000 Subject: [PATCH] From George Irwin: Fix a portability problem in statements using throw git-svn-id: http://root.cern.ch/svn/root/trunk@31302 27541ba8-7e3a-0410-8455-c3a389f83636 --- hist/hist/src/TH1.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hist/hist/src/TH1.cxx b/hist/hist/src/TH1.cxx index 1cdb59de52b..eec2224fca6 100644 --- a/hist/hist/src/TH1.cxx +++ b/hist/hist/src/TH1.cxx @@ -1189,13 +1189,13 @@ bool CheckBinLimits(const TArrayD* h1Array, const TArrayD* h2Array) Int_t fN = h1Array->fN; if ( fN != 0 ) { if ( h2Array->fN != fN ) { - throw(DifferentBinLimits()); + throw DifferentBinLimits(); return false; } else { for ( int i = 0; i < fN; ++i ) { if ( ! TMath::AreEqualAbs( h1Array->GetAt(i), h2Array->GetAt(i), 1E-10 ) ) { - throw(DifferentBinLimits()); + throw DifferentBinLimits(); return false; } } @@ -1215,7 +1215,7 @@ bool TH1::CheckConsistency(const TH1* h1, const TH1* h2) // Check whether the histograms have the same number of bins. if (nbinsx != h2->GetNbinsX() || nbinsy != h2->GetNbinsY() || nbinsz != h2->GetNbinsZ()) { - throw(DifferentNumberOfBins()); + throw DifferentNumberOfBins(); return false; } // Check that the axis limits of the histograms are the same @@ -1225,7 +1225,7 @@ bool TH1::CheckConsistency(const TH1* h1, const TH1* h2) h1->fYaxis.GetXmax() != h2->fYaxis.GetXmax() || h1->fZaxis.GetXmin() != h2->fZaxis.GetXmin() || h1->fZaxis.GetXmax() != h2->fZaxis.GetXmax()) { - throw(DifferentAxisLimits()); + throw DifferentAxisLimits(); return false; } -- GitLab