mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
compiler warnings fixes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
dc946d296e
commit
9b764b425d
3 changed files with 4 additions and 4 deletions
|
@ -91,8 +91,7 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
static QImageIOHandler *createWriteHandlerHelper(QIODevice *device,
|
||||
const QByteArray &format)
|
||||
static QImageIOHandler *createWriteHandlerHelper(QIODevice *device, const QByteArray &format)
|
||||
{
|
||||
QByteArray form = format.toLower();
|
||||
QImageIOHandler *handler = nullptr;
|
||||
|
|
|
@ -92,6 +92,9 @@ void QX11Data::copyQImageToXImage(const QImage &image, XImage *ximage, bool *fre
|
|||
}
|
||||
return;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -161,7 +161,6 @@ void QX11PaintEngine::updateState(const QPaintEngineState &state)
|
|||
|
||||
void QX11PaintEngine::drawPolygon(const QPointF *polygonPoints, int pointCount, PolygonDrawMode mode)
|
||||
{
|
||||
Q_D(QX11PaintEngine);
|
||||
QPainterPath path(polygonPoints[0]);
|
||||
for (int i = 1; i < pointCount; ++i)
|
||||
path.lineTo(polygonPoints[i]);
|
||||
|
@ -180,7 +179,6 @@ void QX11PaintEngine::drawPolygon(const QPointF *polygonPoints, int pointCount,
|
|||
|
||||
void QX11PaintEngine::drawPath(const QPainterPath &path)
|
||||
{
|
||||
Q_D(QX11PaintEngine);
|
||||
if (path.isEmpty())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue