Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 19, 2024
1 parent 3172f54 commit 06ee00b
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,18 @@
#include <QCoreApplication>
#include <QLoggingCategory>
#include <QTest>
#include <QRectF>
#include <QRegion>
#include <QSizeF>
#include <QPointF>
#include <QRect>
#include <QRectF>
#include <QSize>
#include <QSizeF>
#include <QPoint>
#include <QPointF>
#include <QRegion>

#include <cstdio>

void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion &region, const Qt::FillRule fillRule)
{
// cppcheck-suppress unreadVariable
QRegion a;
// cppcheck-suppress unreadVariable
QRegion b{};
// cppcheck-suppress unreadVariable
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 06ee00b

Please sign in to comment.