From da5f93206d98b47b97d24572cd9d3b66acd7b4b4 2012-05-15 13:52:46 From: sauimone Date: 2012-05-15 13:52:46 Subject: [PATCH] warning are errors. fixed --- diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index c78e37e..14f1fd5 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -213,8 +213,9 @@ QList QBarSeries::barSets() const \fn bool QBarSeries::setModel(QAbstractItemModel *model) Sets the \a model to be used as a data source */ -void QBarSeries::setModel(QAbstractItemModel */*model*/) +void QBarSeries::setModel(QAbstractItemModel *model) { + Q_UNUSED(model); // Q_D(QBarSeries); // d->setModel(model); } diff --git a/src/barchart/qbarset.cpp b/src/barchart/qbarset.cpp index 7500cb0..4dbdc36 100644 --- a/src/barchart/qbarset.cpp +++ b/src/barchart/qbarset.cpp @@ -169,8 +169,9 @@ void QBarSet::replace(const int index, const qreal value) */ QPointF QBarSet::at(const int index) const { - if (index < 0 || index >= d_ptr->m_values.count()) - return 0.0; + if (index < 0 || index >= d_ptr->m_values.count()) { + return QPointF(index, 0.0); + } return d_ptr->m_values.at(index); }