From 06ee00b3f377eeb23b9bfb7cacbe81560c314993 Mon Sep 17 00:00:00 2001 From: chrchr Date: Tue, 19 Mar 2024 14:53:27 +0100 Subject: [PATCH] Fix --- test/cfg/qt.cpp | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 64472f692891..3113e9483303 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -23,20 +23,18 @@ #include #include #include -#include -#include -#include -#include #include +#include #include +#include #include +#include +#include #include void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion ®ion, const Qt::FillRule fillRule) { - // cppcheck-suppress unreadVariable - QRegion a; // cppcheck-suppress unreadVariable QRegion b{}; // cppcheck-suppress unreadVariable @@ -55,17 +53,21 @@ void unusedVariable_QPoint_QSize_QRect_QRegion() { // #12529 // cppcheck-suppress unusedVariable QPoint pt; // cppcheck-suppress unusedVariable + QPointF ptf; + // cppcheck-suppress unusedVariable QSize sz; // cppcheck-suppress unusedVariable + QSizeF szf; + // cppcheck-suppress unusedVariable QRect rect; // cppcheck-suppress unusedVariable + QRectF rectf; + // cppcheck-suppress unusedVariable QRegion reg; } void unreadVariable_QPoint(const QPoint &s) { - // cppcheck-suppress unreadVariable - QPoint a; // cppcheck-suppress unreadVariable QPoint b{}; // cppcheck-suppress unreadVariable @@ -78,8 +80,6 @@ void unreadVariable_QPoint(const QPoint &s) void unreadVariable_QPointF(const QPointF &s) { - // cppcheck-suppress unreadVariable - QPointF a; // cppcheck-suppress unreadVariable QPointF b{}; // cppcheck-suppress unreadVariable @@ -92,8 +92,6 @@ void unreadVariable_QPointF(const QPointF &s) void unreadVariable_QSizeF(const QSize &s) { - // cppcheck-suppress unreadVariable - QSizeF a; // cppcheck-suppress unreadVariable QSizeF b{}; // cppcheck-suppress unreadVariable @@ -106,8 +104,6 @@ void unreadVariable_QSizeF(const QSize &s) void unreadVariable_QSize(const QSize &s) { - // cppcheck-suppress unreadVariable - QSize a; // cppcheck-suppress unreadVariable QSize b{}; // cppcheck-suppress unreadVariable @@ -119,8 +115,6 @@ void unreadVariable_QSize(const QSize &s) } void unreadVariable_QRect(const QPoint &topLeft, const QSize &size, const QPoint &bottomRight, const int x) { - // cppcheck-suppress unreadVariable - QRect a; // cppcheck-suppress unreadVariable QRect b{}; // cppcheck-suppress unreadVariable @@ -134,8 +128,6 @@ void unreadVariable_QRect(const QPoint &topLeft, const QSize &size, const QPoint } void unreadVariable_QRectF(const QPointF &topLeft, const QSizeF &size, const QPointF &bottomRight, const QRectF &rect, const qreal x) { - // cppcheck-suppress unreadVariable - QRectF a; // cppcheck-suppress unreadVariable QRectF b{}; // cppcheck-suppress unreadVariable