Fix build

This commit is contained in:
Rebecca Cox 2017-10-25 16:00:42 +02:00
parent 89cedb350a
commit 27df9145f5

View File

@ -40,7 +40,7 @@ void RiuPlotAnnotationTool::attachFormationNames(const std::vector<QString>& nam
for (size_t i = 0; i < names.size(); i++)
{
std::unique_ptr<QwtPlotMarker> line(std::make_unique<QwtPlotMarker>());
std::unique_ptr<QwtPlotMarker> line(new QwtPlotMarker());
line->setLineStyle(QwtPlotMarker::HLine);
line->setLinePen(curvePen);
@ -57,7 +57,7 @@ void RiuPlotAnnotationTool::attachFormationNames(const std::vector<QString>& nam
if ((i == names.size() - 1) || cvf::Math::abs(yPositions[i].second - yPositions[i+1].first) > delta)
{
std::unique_ptr<QwtPlotMarker> line(std::make_unique<QwtPlotMarker>());
std::unique_ptr<QwtPlotMarker> line(new QwtPlotMarker());
line->setLineStyle(QwtPlotMarker::HLine);
line->setLinePen(curvePen);