Add virtual destructor to Fl_Screen_Driver.
This is safer because Fl_Screen_Driver has virtual member functions and derived classes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
682f950796
commit
53993d4bd1
@ -40,6 +40,7 @@ class FL_EXPORT Fl_Screen_Driver {
|
||||
|
||||
protected:
|
||||
Fl_Screen_Driver();
|
||||
virtual ~Fl_Screen_Driver();
|
||||
|
||||
static const int MAX_SCREENS = 16;
|
||||
|
||||
|
@ -32,6 +32,9 @@ num_screens(-1)
|
||||
{
|
||||
}
|
||||
|
||||
Fl_Screen_Driver::~Fl_Screen_Driver() {
|
||||
}
|
||||
|
||||
|
||||
void Fl_Screen_Driver::display(const char *) {
|
||||
// blank
|
||||
|
Loading…
Reference in New Issue
Block a user