diff --git a/lib/jkqtplotter/graphs/jkqtpscatter.cpp b/lib/jkqtplotter/graphs/jkqtpscatter.cpp index dd265cb108..d484f1a54b 100644 --- a/lib/jkqtplotter/graphs/jkqtpscatter.cpp +++ b/lib/jkqtplotter/graphs/jkqtpscatter.cpp @@ -34,11 +34,7 @@ -template -std::unique_ptr make_unique(Args&&... args) -{ - return std::unique_ptr(new T(std::forward(args)...)); -} + @@ -98,8 +94,8 @@ void JKQTPXYLineGraph::draw(JKQTPEnhancedPainter& painter) { //double yold=-1; //bool first=false; //QVector lines; - std::vector> linesP; - linesP.push_back(make_unique()); + std::vector linesP; + linesP.push_back(QPolygonF()); intSortData(); for (int iii=imin; iiigetXAxis()->isLogAxis() || xv>0.0) && (!parent->getYAxis()->isLogAxis() || yv>0.0) ) { plotStyledSymbol(parent, painter, x, y); if (drawLine) { - (*linesP[linesP.size()-1])<()); + linesP.push_back(QPolygonF()); } } } //qDebug()<<"JKQTPXYLineGraph::draw(): "<<4<<" lines="<