Author: AlbrechtS
Date: 2011-03-23 05:49:30 -0700 (Wed, 23 Mar 2011)
New Revision: 8529
Log:
Fixed Fl_Device destructor (made it virtual). This eliminates the compiler
"warning: 'class Fl_Device' has virtual functions but non-virtual destructor"
on Mac OS X.


Modified:
   branches/branch-1.3/FL/Fl_Device.H

Modified: branches/branch-1.3/FL/Fl_Device.H
===================================================================
--- branches/branch-1.3/FL/Fl_Device.H  2011-03-22 17:41:23 UTC (rev 8528)
+++ branches/branch-1.3/FL/Fl_Device.H  2011-03-23 12:49:30 UTC (rev 8529)
@@ -86,6 +86,13 @@
    \endcode
    */
   virtual const char *class_name() {return class_id;};
+  /** 
+   Virtual destructor.
+   
+   The destructor of Fl_Device must be virtual to make the destructors of
+   derived classes being called correctly on destruction.
+   */
+  virtual ~Fl_Device() {};
 };
 
 #define FL_REGION_STACK_SIZE 10

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to