Commit e8c876bc73347d883acd6279c35d26348a000dfe

sammy 2008-05-01T19:31:06

* Make our base classes' destructors public. We want to prevent accidental instantiation, but direct destruction is perfectly legal.

diff --git a/src/FTGL/FTFont.h b/src/FTGL/FTFont.h
index cd02d54..b610d2a 100644
--- a/src/FTGL/FTFont.h
+++ b/src/FTGL/FTFont.h
@@ -59,9 +59,9 @@ class FTGL_EXPORT FTFont
     protected:
         FTFont();
 
+    public:
         virtual ~FTFont();
 
-    public:
         /**
          * Attach auxilliary file to font e.g font metrics.
          *
diff --git a/src/FTGL/FTGlyph.h b/src/FTGL/FTGlyph.h
index b7c62e4..e49aed5 100644
--- a/src/FTGL/FTGlyph.h
+++ b/src/FTGL/FTGlyph.h
@@ -53,9 +53,10 @@ class FTGL_EXPORT FTGlyph
 
     protected:
         FTGlyph();
-        virtual ~FTGlyph();
 
     public:
+        virtual ~FTGlyph();
+
         /**
          * Renders this glyph at the current pen position.
          *
diff --git a/src/FTGL/FTLayout.h b/src/FTGL/FTLayout.h
index b87e8cb..939d700 100644
--- a/src/FTGL/FTLayout.h
+++ b/src/FTGL/FTLayout.h
@@ -51,9 +51,9 @@ class FTGL_EXPORT FTLayout
     protected:
         FTLayout();
 
+    public:
         virtual ~FTLayout();
 
-    public:
         void BBox(const char* string, float& llx, float& lly,
                   float& llz, float& urx, float& ury, float& urz);