diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-03-17 04:39:31 +0300 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2024-03-20 02:24:24 +0000 |
commit | 5920542e9e62672acb42cbb70e6eac27442ebed0 (patch) | |
tree | d763efd412caef37803134e0c05d012f9130d716 /src/kernel/qprinter_p.h | |
parent | 8a13d9aef40a1094723afa46dccc2ee8b52bd739 (diff) | |
download | tqt3-5920542e9e62672acb42cbb70e6eac27442ebed0.tar.gz tqt3-5920542e9e62672acb42cbb70e6eac27442ebed0.zip |
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 <fatzer2@gmail.com>
Diffstat (limited to 'src/kernel/qprinter_p.h')
-rw-r--r-- | src/kernel/qprinter_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <ntqprinter.h> #include <ntqshared.h> #include <ntqstring.h> #include <ntqsize.h> @@ -53,6 +54,8 @@ class TQPrinterPrivate public: TQ_UINT32 printerOptions; TQPrinter::PrintRange printRange; + + virtual ~TQPrinterPrivate() {}; }; #endif |