Skip to content

Commit 06ee00b

Browse files
committed
Fix
1 parent 3172f54 commit 06ee00b

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

test/cfg/qt.cpp

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,18 @@
2323
#include <QCoreApplication>
2424
#include <QLoggingCategory>
2525
#include <QTest>
26-
#include <QRectF>
27-
#include <QRegion>
28-
#include <QSizeF>
29-
#include <QPointF>
3026
#include <QRect>
27+
#include <QRectF>
3128
#include <QSize>
29+
#include <QSizeF>
3230
#include <QPoint>
31+
#include <QPointF>
32+
#include <QRegion>
3333

3434
#include <cstdio>
3535

3636
void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion &region, const Qt::FillRule fillRule)
3737
{
38-
// cppcheck-suppress unreadVariable
39-
QRegion a;
4038
// cppcheck-suppress unreadVariable
4139
QRegion b{};
4240
// cppcheck-suppress unreadVariable
@@ -55,17 +53,21 @@ void unusedVariable_QPoint_QSize_QRect_QRegion() { // #12529
5553
// cppcheck-suppress unusedVariable
5654
QPoint pt;
5755
// cppcheck-suppress unusedVariable
56+
QPointF ptf;
57+
// cppcheck-suppress unusedVariable
5858
QSize sz;
5959
// cppcheck-suppress unusedVariable
60+
QSizeF szf;
61+
// cppcheck-suppress unusedVariable
6062
QRect rect;
6163
// cppcheck-suppress unusedVariable
64+
QRectF rectf;
65+
// cppcheck-suppress unusedVariable
6266
QRegion reg;
6367
}
6468

6569
void unreadVariable_QPoint(const QPoint &s)
6670
{
67-
// cppcheck-suppress unreadVariable
68-
QPoint a;
6971
// cppcheck-suppress unreadVariable
7072
QPoint b{};
7173
// cppcheck-suppress unreadVariable
@@ -78,8 +80,6 @@ void unreadVariable_QPoint(const QPoint &s)
7880

7981
void unreadVariable_QPointF(const QPointF &s)
8082
{
81-
// cppcheck-suppress unreadVariable
82-
QPointF a;
8383
// cppcheck-suppress unreadVariable
8484
QPointF b{};
8585
// cppcheck-suppress unreadVariable
@@ -92,8 +92,6 @@ void unreadVariable_QPointF(const QPointF &s)
9292

9393
void unreadVariable_QSizeF(const QSize &s)
9494
{
95-
// cppcheck-suppress unreadVariable
96-
QSizeF a;
9795
// cppcheck-suppress unreadVariable
9896
QSizeF b{};
9997
// cppcheck-suppress unreadVariable
@@ -106,8 +104,6 @@ void unreadVariable_QSizeF(const QSize &s)
106104

107105
void unreadVariable_QSize(const QSize &s)
108106
{
109-
// cppcheck-suppress unreadVariable
110-
QSize a;
111107
// cppcheck-suppress unreadVariable
112108
QSize b{};
113109
// cppcheck-suppress unreadVariable
@@ -119,8 +115,6 @@ void unreadVariable_QSize(const QSize &s)
119115
}
120116

121117
void unreadVariable_QRect(const QPoint &topLeft, const QSize &size, const QPoint &bottomRight, const int x) {
122-
// cppcheck-suppress unreadVariable
123-
QRect a;
124118
// cppcheck-suppress unreadVariable
125119
QRect b{};
126120
// cppcheck-suppress unreadVariable
@@ -134,8 +128,6 @@ void unreadVariable_QRect(const QPoint &topLeft, const QSize &size, const QPoint
134128
}
135129

136130
void unreadVariable_QRectF(const QPointF &topLeft, const QSizeF &size, const QPointF &bottomRight, const QRectF &rect, const qreal x) {
137-
// cppcheck-suppress unreadVariable
138-
QRectF a;
139131
// cppcheck-suppress unreadVariable
140132
QRectF b{};
141133
// cppcheck-suppress unreadVariable

0 commit comments

Comments
 (0)