From cd781b732ed29b41b5ac18e39cbbba2815fc8f8b Mon Sep 17 00:00:00 2001 From: Jiang Jiang Date: Thu, 1 Sep 2011 15:49:55 +0200 Subject: [PATCH] Avoid double initialize of platform font database Since platform font database will be populated in QFontDatabase::load, no need to do it here in QFont::initialize. Change-Id: I1b8c9f6fc9be40e0263ed3951c794141c6297e84 Reviewed-on: http://codereview.qt-project.org/4091 Reviewed-by: Qt Sanity Bot Reviewed-by: Jiang Jiang --- src/gui/text/qfont_qpa.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/text/qfont_qpa.cpp b/src/gui/text/qfont_qpa.cpp index 3e0a246..54ef911 100644 --- a/src/gui/text/qfont_qpa.cpp +++ b/src/gui/text/qfont_qpa.cpp @@ -46,7 +46,6 @@ QT_BEGIN_NAMESPACE void QFont::initialize() { - QApplicationPrivate::platformIntegration()->fontDatabase()->populateFontDatabase(); } void QFont::cleanup() -- 2.7.4