From e67c80ea8c830b079026045081c262d065519ec2 2012-01-20 15:33:09 From: Michal Klocek Date: 2012-01-20 15:33:09 Subject: [PATCH] Changes reinterpret_cast to static_cast --- diff --git a/src/qchart.cpp b/src/qchart.cpp index 6c8d40a..73f84ab 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -2,6 +2,7 @@ #include "qchartseries.h" #include "qscatterseries.h" #include "qscatterseries_p.h" +#include "qxychartseries.h" #include "xylinechartitem_p.h" #include "xyplotdomain_p.h" #include "axis_p.h" @@ -71,12 +72,13 @@ QRectF QChart::boundingRect() const void QChart::addSeries(QChartSeries* series) { Q_D(QChart); + d->m_series<type()) { case QChartSeries::SeriesTypeLine: { - XYLineChartItem* item = new XYLineChartItem(reinterpret_cast(series),this); + XYLineChartItem* item = new XYLineChartItem(static_cast(series),this); item->updateXYPlotData(d->m_plotDataList.at(0)); d->m_items<