From 5920542e9e62672acb42cbb70e6eac27442ebed0 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sun, 17 Mar 2024 04:39:31 +0300 Subject: 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 --- src/kernel/qprinter_p.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/qprinter_p.h') diff --git a/src/kernel/qprinter_p.h b/src/kernel/qprinter_p.h index 79c5f8271..b7f6d68c4 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 -- cgit v1.2.1