Skip to content

Commit 3fc079c

Browse files
authored
Fix Qwt deprecated declarations (#356)
1 parent feb29fc commit 3fc079c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fuse_loss/include/fuse_loss/qwt_loss_plot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class QwtLossPlot
218218
{
219219
public:
220220
QwtLossPlot(const std::vector<double>& residuals, const HSVColormap& colormap)
221-
: residuals_(QVector<double>::fromStdVector(residuals))
221+
: residuals_(residuals.cbegin(), residuals.cend())
222222
, loss_evaluator_(residuals)
223223
, colormap_(colormap)
224224
, magnifier_(plot_.canvas())
@@ -251,7 +251,7 @@ class QwtLossPlot
251251
{
252252
QwtPlotCurve* curve = new QwtPlotCurve(name.c_str());
253253

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

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

0 commit comments

Comments
 (0)