From 29c8c34392804b490cdd5aaa349820cab7f695c7 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 14 Jun 2019 23:33:50 +0000 Subject: [PATCH] minor cleanup Signed-off-by: Ivailo Monev --- src/core/global/qnamespace.h | 3 +-- src/gui/painting/qpaintengine_raster.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/global/qnamespace.h b/src/core/global/qnamespace.h index 5bb1af2c4..6734bcd16 100644 --- a/src/core/global/qnamespace.h +++ b/src/core/global/qnamespace.h @@ -1398,8 +1398,7 @@ public: Widget = 1, Pixmap = 2, Image = 3, - Printer = 4, - CustomRaster = 5 + Printer = 4 }; enum Callback { diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index ccac2b1cd..1d28b1c35 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -311,8 +311,7 @@ bool QRasterPaintEngine::begin(QPaintDevice *device) // Make sure QPaintEngine::paintDevice() returns the proper device. d->pdev = d->device; - Q_ASSERT(d->device->devType() == QInternal::Image - || d->device->devType() == QInternal::CustomRaster); + Q_ASSERT(d->device->devType() == QInternal::Image); d->systemStateChanged();