diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-08 16:04:09 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-08 16:04:09 +0200 |
| commit | 71069b857068201c37ffcc2c3e799329ff29769b (patch) | |
| tree | 2c534fcbd3da8d54cf1388816962822f46c7ae7b /src/drivers | |
| parent | 13e05f4204cc636e40fd2591898c482aa0085226 (diff) | |
Add necessary virtual qualifier to ~Fl_Font_Descriptor() and derived.
Diffstat (limited to 'src/drivers')
| -rw-r--r-- | src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H | 2 | ||||
| -rw-r--r-- | src/drivers/GDI/Fl_Font.H | 2 | ||||
| -rw-r--r-- | src/drivers/Quartz/Fl_Font.H | 2 | ||||
| -rw-r--r-- | src/drivers/Xlib/Fl_Font.H | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H index 84c2f1acf..5ca8ab027 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.H @@ -32,7 +32,7 @@ typedef struct _PangoFontDescription PangoFontDescription; class Fl_Cairo_Font_Descriptor : public Fl_Font_Descriptor { public: Fl_Cairo_Font_Descriptor(const char* fontname, Fl_Fontsize size, PangoContext *context); - FL_EXPORT ~Fl_Cairo_Font_Descriptor(); + virtual FL_EXPORT ~Fl_Cairo_Font_Descriptor(); PangoFontDescription *fontref; int **width; // array of arrays of character widths int line_height; diff --git a/src/drivers/GDI/Fl_Font.H b/src/drivers/GDI/Fl_Font.H index f636bb2f4..d160c55e9 100644 --- a/src/drivers/GDI/Fl_Font.H +++ b/src/drivers/GDI/Fl_Font.H @@ -34,7 +34,7 @@ public: # if HAVE_GL char glok[64]; # endif // HAVE_GL - FL_EXPORT ~Fl_GDI_Font_Descriptor(); + virtual FL_EXPORT ~Fl_GDI_Font_Descriptor(); }; extern FL_EXPORT Fl_Fontdesc *fl_fonts; // the table diff --git a/src/drivers/Quartz/Fl_Font.H b/src/drivers/Quartz/Fl_Font.H index 5e24ce7c3..be571ece1 100644 --- a/src/drivers/Quartz/Fl_Font.H +++ b/src/drivers/Quartz/Fl_Font.H @@ -29,7 +29,7 @@ class Fl_Quartz_Font_Descriptor : public Fl_Font_Descriptor { public: Fl_Quartz_Font_Descriptor(const char* fontname, Fl_Fontsize size); - FL_EXPORT ~Fl_Quartz_Font_Descriptor(); + virtual FL_EXPORT ~Fl_Quartz_Font_Descriptor(); # if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 CTFontRef fontref; // the unicode span is divided in 512 blocks of 128 characters diff --git a/src/drivers/Xlib/Fl_Font.H b/src/drivers/Xlib/Fl_Font.H index a148e2bf2..9a5e40a93 100644 --- a/src/drivers/Xlib/Fl_Font.H +++ b/src/drivers/Xlib/Fl_Font.H @@ -49,7 +49,7 @@ public: char glok[64]; # endif // HAVE_GL # endif // USE_XFT - FL_EXPORT ~Fl_Xlib_Font_Descriptor(); + virtual FL_EXPORT ~Fl_Xlib_Font_Descriptor(); }; //extern FL_EXPORT Fl_Font_Descriptor *fl_fontsize; // the currently selected one |
