summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qplatformprintplugin.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@digia.com>2013-10-31 12:23:48 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-31 14:22:25 +0100
commitf4d85c6548750fdd5e10602af50f085b53eaf24c (patch)
tree9b74d878b0540203c33f42f7af9e9f119870a486 /src/printsupport/kernel/qplatformprintplugin.cpp
parenta174eb95f1a39dcc10e50d889c2d3f4b17c004e8 (diff)
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 <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/printsupport/kernel/qplatformprintplugin.cpp')
-rw-r--r--src/printsupport/kernel/qplatformprintplugin.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}