summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2011-11-01 13:34:46 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2011-11-01 13:34:46 (GMT)
commit024ecc0c84f7bb832f6816790d02542d4ed2683d (patch)
tree4cc1965608c45220b46f670128b61d1bb020759e
parent1220069034f4ad28978427fc584fd63c410f526e (diff)
parent257824bc7b2416e0b66d98423e25525da9141d1f (diff)
downloadQt-024ecc0c84f7bb832f6816790d02542d4ed2683d.zip
Qt-024ecc0c84f7bb832f6816790d02542d4ed2683d.tar.gz
Qt-024ecc0c84f7bb832f6816790d02542d4ed2683d.tar.bz2
Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team
* 'master' of git://scm.dev.nokia.troll.no/qt/qt-fire-team: Fix QFont related compilation errors on Mac OSX Carbon
-rw-r--r--src/gui/text/qfontdatabase_mac.cpp4
-rw-r--r--src/gui/text/qfontengine_mac.mm2
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,