diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2011-11-01 12:51:22 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-11-01 12:51:22 (GMT) |
commit | 257824bc7b2416e0b66d98423e25525da9141d1f (patch) | |
tree | 4cc1965608c45220b46f670128b61d1bb020759e /src/gui/text/qfontdatabase_mac.cpp | |
parent | 4310e4325498fa6613aef53d61f2c5e1cec151c8 (diff) | |
download | Qt-257824bc7b2416e0b66d98423e25525da9141d1f.zip Qt-257824bc7b2416e0b66d98423e25525da9141d1f.tar.gz Qt-257824bc7b2416e0b66d98423e25525da9141d1f.tar.bz2 |
Fix QFont related compilation errors on Mac OSX Carbon
Task-number: QTBUG-22318
Merge-request: 1434
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'src/gui/text/qfontdatabase_mac.cpp')
-rw-r--r-- | src/gui/text/qfontdatabase_mac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qfontdatabase_mac.cpp b/src/gui/text/qfontdatabase_mac.cpp index fc8247d..9a8e8af 100644 --- a/src/gui/text/qfontdatabase_mac.cpp +++ b/src/gui/text/qfontdatabase_mac.cpp @@ -251,7 +251,7 @@ static inline float weightToFloat(unsigned int weight) return (weight - 50) / 100.0; } -static QFontEngine *loadFromDatabase(const QFontDef &req, const QFontPrivate *d) +static QFontEngine *loadFromDatabase(QFontDef &req, const QFontPrivate *d) { #if defined(QT_MAC_USE_COCOA) QCFString fontName = NULL; @@ -302,7 +302,7 @@ found: QCFString actualName; if (ATSFontFamilyGetName(familyRef, kATSOptionFlagsDefault, &actualName) == noErr) req.family = actualName; - return new QFontEngineMacMulti(familyRef, req, fontDef, d->kerning); + return new QFontEngineMacMulti(familyRef, fontRef, req, d->kerning); } #endif return NULL; |