From: Erik Verbruggen Date: Tue, 6 Nov 2012 09:09:47 +0000 (+0100) Subject: Fix for compiling with clang with c++11. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c21fddb2cbcad0d14c043e6e4a427a738e0f2a9;p=profile%2Fivi%2Fqtbase.git Fix for compiling with clang with c++11. Change-Id: I4f4928783d0e35b0df5e979fef1de80e9a026f55 Reviewed-by: Morten Johan Sørvig --- 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 };