From f4d85c6548750fdd5e10602af50f085b53eaf24c Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete Date: Thu, 31 Oct 2013 12:23:48 +0100 Subject: [PATCH] Remove compiler warning when QT_NO_PRINTER is defined This broke the build on Android with warnings-are-errors. Change-Id: I9edb9539c4a6f7286ff46cbaa53bcfef4cf5280f Reviewed-by: Friedemann Kleint --- src/printsupport/kernel/qplatformprintplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/printsupport/kernel/qplatformprintplugin.cpp b/src/printsupport/kernel/qplatformprintplugin.cpp index e38b481a0e..f3e88e7cf7 100644 --- a/src/printsupport/kernel/qplatformprintplugin.cpp +++ b/src/printsupport/kernel/qplatformprintplugin.cpp @@ -65,7 +65,9 @@ static QPlatformPrinterSupport *printerSupport = 0; static void cleanupPrinterSupport() { +#ifndef QT_NO_PRINTER delete printerSupport; +#endif printerSupport = 0; }