Author: spitzak
Date: 2007-04-10 06:42:07 -0400 (Tue, 10 Apr 2007)
New Revision: 5770
Log:
Put in another virtual destructor to shut up compiler warnings.


Modified:
   trunk/fltk/LabelType.h
   trunk/src/Widget_draw.cxx

Modified: trunk/fltk/LabelType.h
===================================================================
--- trunk/fltk/LabelType.h      2007-04-10 10:40:18 UTC (rev 5769)
+++ trunk/fltk/LabelType.h      2007-04-10 10:42:07 UTC (rev 5770)
@@ -44,7 +44,7 @@
   static LabelType* first;
   LabelType(const char* n) : name(n), next(first) {first = this;}
   static LabelType* find(const char* name);
-  // virtual ~LabelType() {} // not done as it slows program exit
+  virtual ~LabelType(); // virtual to shut up C++ warnings
 };
 
 // You can use this to draw overlapping patterns

Modified: trunk/src/Widget_draw.cxx
===================================================================
--- trunk/src/Widget_draw.cxx   2007-04-10 10:40:18 UTC (rev 5769)
+++ trunk/src/Widget_draw.cxx   2007-04-10 10:42:07 UTC (rev 5770)
@@ -62,6 +62,8 @@
 LabelType* const fltk::NORMAL_LABEL = &normalLabel;
 LabelType* const fltk::SYMBOL_LABEL = &normalLabel;
 
+LabelType::~LabelType() {}
+
 ////////////////////////////////////////////////////////////////
 
 class FL_API NoLabel : public LabelType {

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

Reply via email to