Fix nested template declarations for non-C++11 builds
Change-Id: Ie38aae09033a47106a4a1cf2e9997f90961a4e33 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
This commit is contained in:
parent
dd921b59ab
commit
ce761f45fe
@ -616,10 +616,10 @@ void QCoreTextFontDatabase::removeApplicationFonts()
|
|||||||
#if HAVE_CORETEXT
|
#if HAVE_CORETEXT
|
||||||
if (&CTFontManagerUnregisterGraphicsFont && &CTFontManagerUnregisterFontsForURL) {
|
if (&CTFontManagerUnregisterGraphicsFont && &CTFontManagerUnregisterFontsForURL) {
|
||||||
CFErrorRef error;
|
CFErrorRef error;
|
||||||
if (font.canConvert(qMetaTypeId<QCFType<CGFontRef>>())) {
|
if (font.canConvert(qMetaTypeId<QCFType<CGFontRef> >())) {
|
||||||
CTFontManagerUnregisterGraphicsFont(font.value<QCFType<CGFontRef>>(), &error);
|
CTFontManagerUnregisterGraphicsFont(font.value<QCFType<CGFontRef> >(), &error);
|
||||||
} else if (font.canConvert(qMetaTypeId<QCFType<CFURLRef>>())) {
|
} else if (font.canConvert(qMetaTypeId<QCFType<CFURLRef> >())) {
|
||||||
CTFontManagerUnregisterFontsForURL(font.value<QCFType<CFURLRef>>(), kCTFontManagerScopeProcess, &error);
|
CTFontManagerUnregisterFontsForURL(font.value<QCFType<CFURLRef> >(), kCTFontManagerScopeProcess, &error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user