Skip to content

Commit

Permalink
Fix Qwt deprecated declarations (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
efernandez authored Jan 29, 2024
1 parent feb29fc commit 3fc079c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuse_loss/include/fuse_loss/qwt_loss_plot.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class QwtLossPlot
{
public:
QwtLossPlot(const std::vector<double>& residuals, const HSVColormap& colormap)
: residuals_(QVector<double>::fromStdVector(residuals))
: residuals_(residuals.cbegin(), residuals.cend())
, loss_evaluator_(residuals)
, colormap_(colormap)
, magnifier_(plot_.canvas())
Expand Down Expand Up @@ -251,7 +251,7 @@ class QwtLossPlot
{
QwtPlotCurve* curve = new QwtPlotCurve(name.c_str());

curve->setSamples(residuals_, QVector<double>::fromStdVector(values));
curve->setSamples(residuals_, QVector<double>(values.cbegin(), values.cend()));

curve->setPen(colormap_[curves_.size()]);
curve->attach(&plot_);
Expand Down

0 comments on commit 3fc079c

Please sign in to comment.