From 7c21fddb2cbcad0d14c043e6e4a427a738e0f2a9 Mon Sep 17 00:00:00 2001 From: Erik Verbruggen Date: Tue, 6 Nov 2012 10:09:47 +0100 Subject: [PATCH] Fix for compiling with clang with c++11. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I4f4928783d0e35b0df5e979fef1de80e9a026f55 Reviewed-by: Morten Johan Sørvig --- src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm b/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm index 380f5ca..99a316b 100644 --- a/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm +++ b/src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm @@ -409,7 +409,7 @@ QStringList QCoreTextFontDatabase::addApplicationFont(const QByteArray &fontData } } else { CFErrorRef error; - QCFType fontURL = CFURLCreateWithFileSystemPath(NULL, QCFString(fileName), 0, false); + QCFType fontURL = CFURLCreateWithFileSystemPath(NULL, QCFString(fileName), kCFURLPOSIXPathStyle, false); bool success = CTFontManagerRegisterFontsForURL(fontURL, kCTFontManagerScopeProcess, &error); if (success) { const void *keys[] = { fontURL }; -- 2.7.4