From 4e3f9e2ab3cbaa47d433e70c1768bdf3986624ff Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 4 Mar 2012 18:24:38 +0000 Subject: The Fl_Paged_Device destructor is made public instead of protected to ease the use of custom Fl_Paged_Device subclasses at the application level. This is protected by #if FLTK_ABI_VERSION >= 10302 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9263 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Paged_Device.H | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Paged_Device.H b/FL/Fl_Paged_Device.H index ef73d0d1b..b2e9169a7 100644 --- a/FL/Fl_Paged_Device.H +++ b/FL/Fl_Paged_Device.H @@ -107,9 +107,15 @@ protected: int y_offset; /** \brief The constructor */ Fl_Paged_Device() : Fl_Surface_Device(NULL) {}; +#if FLTK_ABI_VERSION >= 10302 +public: + /** \brief The destructor */ + virtual ~Fl_Paged_Device() {}; +#else /** \brief The destructor */ virtual ~Fl_Paged_Device() {}; public: +#endif // FLTK_ABI_VERSION static const char *class_id; const char *class_name() {return class_id;}; virtual int start_job(int pagecount, int *frompage = NULL, int *topage = NULL); -- cgit v1.2.3