Skip to content
Snippets Groups Projects
Commit 4a5d59ba authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ctd

parent 06ef366e
No related branches found
No related tags found
1 merge request!451various little improvements as suggested by clang-tidy
......@@ -112,8 +112,10 @@ Histogram1D* Histogram2D::projectionY(double xlow, double xup)
Histogram2D* Histogram2D::crop(double xmin, double ymin, double xmax, double ymax)
{
const std::unique_ptr<IAxis> xaxis(xAxis().createClippedAxis(xmin, xmax));
const std::unique_ptr<IAxis> yaxis(yAxis().createClippedAxis(ymin, ymax));
const std::unique_ptr<IAxis> xaxis{xAxis().clone()};
const std::unique_ptr<IAxis> yaxis{yAxis().clone()};
xaxis->clip(xmin, xmax);
yaxis->clip(ymin, ymax);
Histogram2D* result = new Histogram2D(*xaxis, *yaxis);
OutputData<CumulativeValue>::const_iterator it_origin = m_data.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment