diff options
author | Paul Olav Tvete <paul.tvete@digia.com> | 2013-10-31 12:23:48 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-31 14:22:25 +0100 |
commit | f4d85c6548750fdd5e10602af50f085b53eaf24c (patch) | |
tree | 9b74d878b0540203c33f42f7af9e9f119870a486 /src/printsupport | |
parent | a174eb95f1a39dcc10e50d889c2d3f4b17c004e8 (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')
-rw-r--r-- | src/printsupport/kernel/qplatformprintplugin.cpp | 2 |
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; } |