From 91b94c58701c9b751f8ef7323b1a2be56fd3c9b6 2012-08-30 12:07:57 From: Jani Honkonen Date: 2012-08-30 12:07:57 Subject: [PATCH] fix some Cppcheck findings --- diff --git a/examples/scrollchart/chartview.h b/examples/scrollchart/chartview.h index ea0c33c..41202e3 100644 --- a/examples/scrollchart/chartview.h +++ b/examples/scrollchart/chartview.h @@ -38,7 +38,6 @@ protected: private: bool m_isScrolling; - bool m_isRubberBandShown; QRubberBand m_rubberBand; QPoint m_origin; }; diff --git a/src/chartdataset_p.h b/src/chartdataset_p.h index 0b8e5d9..8ab5702 100644 --- a/src/chartdataset_p.h +++ b/src/chartdataset_p.h @@ -91,8 +91,6 @@ private: QMap m_seriesAxisYMap; QMap m_seriesDomainMap; QMap m_indexSeriesMap; - int m_domainIndex; - }; QTCOMMERCIALCHART_END_NAMESPACE diff --git a/src/charttheme.cpp b/src/charttheme.cpp index 8bcae74..a655d6d 100644 --- a/src/charttheme.cpp +++ b/src/charttheme.cpp @@ -63,6 +63,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE ChartTheme::ChartTheme(QChart::ChartTheme id) : + m_id(id), m_masterFont(QFont("arial", 14)), m_labelFont(QFont("arial", 10)), m_labelBrush(QColor(QRgb(0x000000))), @@ -74,7 +75,6 @@ ChartTheme::ChartTheme(QChart::ChartTheme id) : m_gridLinePen(QPen(QRgb(0x000000))), m_force(false) { - m_id = id; qsrand(QTime(0,0,0).secsTo(QTime::currentTime())); } diff --git a/src/legend/legendlayout_p.h b/src/legend/legendlayout_p.h index 270aaf2..66a0866 100644 --- a/src/legend/legendlayout_p.h +++ b/src/legend/legendlayout_p.h @@ -51,9 +51,6 @@ private: private: QLegend* m_legend; - int m_marginBig; - int m_marginSmall; - int m_marginTiny; qreal m_offsetX; qreal m_offsetY; qreal m_minOffsetX;