From 28b419c733534ffcfa6c8bdcca8fcf95b9d5ec37 Mon Sep 17 00:00:00 2001 From: Alex Trotsenko Date: Fri, 20 Nov 2020 20:03:49 +0200 Subject: [PATCH] QWin32PrintEngine: fix compilation On MinGW32 it fails with error: .../src/corelib/global/global.h: 1186:34: error: unused variable 'q' ...qprintengine_win.cpp: 753:5: note: in expansion of macro 'Q_Q' Change-Id: I8eb0e3c5b72f8542cd3bd11514b12d308481f250 Reviewed-by: Volker Hilsheimer (cherry picked from commit 27e08b0c40b73edc5354f9ad3cf7e5e660243553) Reviewed-by: Qt Cherry-pick Bot --- src/printsupport/platform/windows/qprintengine_win.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/printsupport/platform/windows/qprintengine_win.cpp b/src/printsupport/platform/windows/qprintengine_win.cpp index 3d4a0cfd7a1..454bcab069f 100644 --- a/src/printsupport/platform/windows/qprintengine_win.cpp +++ b/src/printsupport/platform/windows/qprintengine_win.cpp @@ -750,8 +750,6 @@ void QWin32PrintEnginePrivate::fillPath(const QPainterPath &path, const QColor & void QWin32PrintEnginePrivate::strokePath(const QPainterPath &path, const QColor &color) { - Q_Q(QWin32PrintEngine); - QPainterPathStroker stroker; if (pen.style() == Qt::CustomDashLine) { stroker.setDashPattern(pen.dashPattern());