* Make our base classes' destructors public. We want to prevent accidental instantiation, but direct destruction is perfectly legal.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
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);