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 | |
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')
-rw-r--r-- | src/gui/text/qfontdatabase_mac.cpp | 4 | ||||
-rw-r--r-- | src/gui/text/qfontengine_mac.mm | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/src/gui/text/qfontengine_mac.mm b/src/gui/text/qfontengine_mac.mm index 6186b2f..14ded69 100644 --- a/src/gui/text/qfontengine_mac.mm +++ b/src/gui/text/qfontengine_mac.mm @@ -369,7 +369,7 @@ int QFontEngineMacMulti::fontIndexForFontID(ATSUFontID id) const bool QFontEngineMacMulti::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, QTextEngine::ShaperFlags flags) const { - return stringToCMap(str, len, glyphs, nglyphs, flags, /*logClusters=*/0, /*charAttributes=*/0); + return stringToCMap(str, len, glyphs, nglyphs, flags, /*logClusters=*/0, /*charAttributes=*/0, /*si=*/0); } bool QFontEngineMacMulti::stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, QTextEngine::ShaperFlags flags, |