Add destructor to QPlatformFontDatabase.

Virtual functions deserve a virtual dtor.

Change-Id: I71b7ae3b7fb0aa1553a37a90dce6270740d49e32
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Frederik Gladhorn 2011-12-15 13:51:29 +01:00 committed by Qt by Nokia
parent cb9b7ceffb
commit a730a2b196
2 changed files with 8 additions and 0 deletions

View File

@ -232,6 +232,13 @@ bool QSupportedWritingSystems::supported(QFontDatabase::WritingSystem writingSys
*/
/*!
\internal
*/
QPlatformFontDatabase::~QPlatformFontDatabase()
{
}
/*!
This function is called once at startup by Qt's internal font database.
Reimplement this function in a subclass for a convenient place to initialize

View File

@ -87,6 +87,7 @@ class QFontRequestPrivate;
class Q_GUI_EXPORT QPlatformFontDatabase
{
public:
virtual ~QPlatformFontDatabase();
virtual void populateFontDatabase();
virtual QFontEngine *fontEngine(const QFontDef &fontDef, QUnicodeTables::Script script, void *handle);
virtual QStringList fallbacksForFamily(const QString family, const QFont::Style &style, const QFont::StyleHint &styleHint, const QUnicodeTables::Script &script) const;