diff options
author | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 14:42:25 +0200 |
---|---|---|
committer | Lars Schmertmann <Lars.Schmertmann@governikus.de> | 2020-06-26 15:21:30 +0200 |
commit | 6852c79c458df659e440c26d91a11a2c8120d875 (patch) | |
tree | 38c682486b965b640e65398f2930bdea250a5602 /src/charts/barchart/vertical/percent/percentbarchartitem.cpp | |
parent | 10b3639bf28e384cec0eba882de1e73e91462a2e (diff) |
Add ; to Q_UNUSED
This is required to remove the ; from the macro with Qt 6.
Task-number: QTBUG-82978
Change-Id: I0d9e3a48056294137f1465f091802b4b7c32c8bf
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/charts/barchart/vertical/percent/percentbarchartitem.cpp')
-rw-r--r-- | src/charts/barchart/vertical/percent/percentbarchartitem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/charts/barchart/vertical/percent/percentbarchartitem.cpp b/src/charts/barchart/vertical/percent/percentbarchartitem.cpp index a3a00aa5..1cc4d27f 100644 --- a/src/charts/barchart/vertical/percent/percentbarchartitem.cpp +++ b/src/charts/barchart/vertical/percent/percentbarchartitem.cpp @@ -46,7 +46,7 @@ PercentBarChartItem::PercentBarChartItem(QAbstractBarSeries *series, QGraphicsIt QString PercentBarChartItem::generateLabelText(int set, int category, qreal value) { - Q_UNUSED(value) + Q_UNUSED(value); static const QString valueTag(QLatin1String("@value")); qreal p = m_series->d_func()->percentageAt(set, category) * 100.0; @@ -66,8 +66,8 @@ QString PercentBarChartItem::generateLabelText(int set, int category, qreal valu void PercentBarChartItem::initializeLayout(int set, int category, int layoutIndex, bool resetAnimation) { - Q_UNUSED(set) - Q_UNUSED(resetAnimation) + Q_UNUSED(set); + Q_UNUSED(resetAnimation); QRectF rect; @@ -99,7 +99,7 @@ void PercentBarChartItem::initializeLayout(int set, int category, void PercentBarChartItem::markLabelsDirty(QBarSet *barset, int index, int count) { - Q_UNUSED(barset) + Q_UNUSED(barset); // Percent series need to dirty all labels of the stack QList<QBarSet *> sets = m_barMap.keys(); for (int set = 0; set < sets.size(); set++) |