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 (&CTFontManagerUnregisterGraphicsFont && &CTFontManagerUnregisterFontsForURL) {
|
||||
CFErrorRef error;
|
||||
if (font.canConvert(qMetaTypeId<QCFType<CGFontRef>>())) {
|
||||
CTFontManagerUnregisterGraphicsFont(font.value<QCFType<CGFontRef>>(), &error);
|
||||
} else if (font.canConvert(qMetaTypeId<QCFType<CFURLRef>>())) {
|
||||
CTFontManagerUnregisterFontsForURL(font.value<QCFType<CFURLRef>>(), kCTFontManagerScopeProcess, &error);
|
||||
if (font.canConvert(qMetaTypeId<QCFType<CGFontRef> >())) {
|
||||
CTFontManagerUnregisterGraphicsFont(font.value<QCFType<CGFontRef> >(), &error);
|
||||
} else if (font.canConvert(qMetaTypeId<QCFType<CFURLRef> >())) {
|
||||
CTFontManagerUnregisterFontsForURL(font.value<QCFType<CFURLRef> >(), kCTFontManagerScopeProcess, &error);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user