From e1ab89b16bd10876675e93a170467a8df9ecd425 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 6 Feb 2025 08:26:38 +1000 Subject: [PATCH] Silence deprecation warnings for QgsMaskPaintEngine We can't silence the constructor deprecation warning when used with make_unique, so just remove the constructor deprecated flag. This is a private class, not exposed to Python, and only used from within QGIS by a class which is itself completely deprecated (and marked accordingly). --- src/core/painting/qgsmaskpaintdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/painting/qgsmaskpaintdevice.h b/src/core/painting/qgsmaskpaintdevice.h index 9f071426f6d8..52eaeda7bf62 100644 --- a/src/core/painting/qgsmaskpaintdevice.h +++ b/src/core/painting/qgsmaskpaintdevice.h @@ -31,7 +31,7 @@ class QgsMaskPaintEngine: public QPaintEngine public: - Q_DECL_DEPRECATED QgsMaskPaintEngine( bool usePathStroker = false ); + QgsMaskPaintEngine( bool usePathStroker = false ); bool begin( QPaintDevice * ) override { return true; }; bool end() override { return true; };