Skip to content

Commit a482991

Browse files
committed
modernize-use-auto
1 parent fe76037 commit a482991

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGDQ/Core/HistogramsLibrary.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,7 @@ void o2::aod::dqhistograms::AddHistogramsFromJSON(HistogramManager* hm, const ch
27892789
int iDim = 0;
27902790
binLimits = new TArrayD[nDimensions];
27912791
for (auto& v : hist.FindMember("binLimits")->value.GetArray()) {
2792-
double* lims = new double[v.GetArray().Size()];
2792+
auto* lims = new double[v.GetArray().Size()];
27932793
int iElem = 0;
27942794
for (auto& lim : v.GetArray()) {
27952795
lims[iElem++] = lim.GetDouble();
@@ -2927,7 +2927,7 @@ void o2::aod::dqhistograms::AddHistogramsFromJSON(HistogramManager* hm, const ch
29272927
LOG(fatal) << "Histogram not properly defined in the JSON file. Wrong x binning for histogram";
29282928
continue;
29292929
}
2930-
double* xbins = new double[xbinsVec.size()];
2930+
auto* xbins = new double[xbinsVec.size()];
29312931
std::copy(xbinsVec.begin(), xbinsVec.end(), xbins);
29322932

29332933
double* ybins = nullptr;

0 commit comments

Comments
 (0)