From ff781dbb52ec41578b6e4ca827ba1c11b48f3faf 2015-09-23 09:53:54 From: Titta Heikkala Date: 2015-09-23 09:53:54 Subject: [PATCH] Removed unnecessary private member from LineChartItem m_points member variable is not needed in LineChartItem as the points from XYChart can be used. Change-Id: I9d038418c306c662da3caeab937f4b5a219f3bd1 Task-number: QTRD-3489 Reviewed-by: Miikka Heikkinen --- diff --git a/src/charts/linechart/linechartitem.cpp b/src/charts/linechart/linechartitem.cpp index ba39098..2117da0 100644 --- a/src/charts/linechart/linechartitem.cpp +++ b/src/charts/linechart/linechartitem.cpp @@ -70,8 +70,7 @@ QPainterPath LineChartItem::shape() const void LineChartItem::updateGeometry() { - m_points = geometryPoints(); - const QVector &points = m_points; + const QVector &points = geometryPoints(); if (points.size() == 0) { prepareGeometryChange(); diff --git a/src/charts/linechart/linechartitem_p.h b/src/charts/linechart/linechartitem_p.h index 846ea78..321a8f6 100644 --- a/src/charts/linechart/linechartitem_p.h +++ b/src/charts/linechart/linechartitem_p.h @@ -74,7 +74,6 @@ private: QPainterPath m_fullPath; QPainterPath m_shapePath; - QVector m_points; QRectF m_rect; QPen m_linePen; bool m_pointsVisible;