Fix for compiling with clang with c++11.

Change-Id: I4f4928783d0e35b0df5e979fef1de80e9a026f55
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
Erik Verbruggen 2012-11-06 10:09:47 +01:00 committed by The Qt Project
parent 8e22d05dc9
commit 7c21fddb2c

View File

@ -409,7 +409,7 @@ QStringList QCoreTextFontDatabase::addApplicationFont(const QByteArray &fontData
}
} else {
CFErrorRef error;
QCFType<CFURLRef> fontURL = CFURLCreateWithFileSystemPath(NULL, QCFString(fileName), 0, false);
QCFType<CFURLRef> fontURL = CFURLCreateWithFileSystemPath(NULL, QCFString(fileName), kCFURLPOSIXPathStyle, false);
bool success = CTFontManagerRegisterFontsForURL(fontURL, kCTFontManagerScopeProcess, &error);
if (success) {
const void *keys[] = { fontURL };