Fix for compiling with clang with c++11.
authorErik Verbruggen <erik.verbruggen@digia.com>
Tue, 6 Nov 2012 09:09:47 +0000 (10:09 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 Nov 2012 21:06:28 +0000 (22:06 +0100)
Change-Id: I4f4928783d0e35b0df5e979fef1de80e9a026f55
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm

index 380f5ca..99a316b 100644 (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 };