From bb6797db1f6f36a38f528f39423cf7db47b3bd2f Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 17 Mar 2024 04:39:31 +0300 Subject: [PATCH] TQPrinterPrivate: add virtual destructor. As derivative from it e.g. TQPrinterUnixPrivate are getting deleted (e.g in unix TQPrinter implementation) by a reference to base class. Also added missing include to the header. Signed-off-by: Alexander Golubev (cherry picked from commit 5920542e9e62672acb42cbb70e6eac27442ebed0) --- src/kernel/qprinter_p.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/kernel/qprinter_p.h b/src/kernel/qprinter_p.h index 79c5f827..b7f6d68c 100644 --- a/src/kernel/qprinter_p.h +++ b/src/kernel/qprinter_p.h @@ -43,6 +43,7 @@ #ifndef TQT_NO_PRINTER #ifndef QT_H +#include #include #include #include @@ -53,6 +54,8 @@ class TQPrinterPrivate public: TQ_UINT32 printerOptions; TQPrinter::PrintRange printRange; + + virtual ~TQPrinterPrivate() {}; }; #endif