Kaydet (Commit) 6d0f3a84 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticcall

Change-Id: I7639df64242e5b30f9857363b3be33d61bf28594
üst 7c2f0000
......@@ -335,7 +335,7 @@ void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool)
const FontDta &rFntDta = aTable[i];
LanguageType nLang = (LANGUAGE_NONE == rFntDta.nLang) ?
rFntDta.nFallbackLang : rFntDta.nLang;
Font aFont = Application::GetDefaultDevice()->GetDefaultFont(
Font aFont = OutputDevice::GetDefaultFont(
rFntDta.nFontType, nLang, DEFAULTFONT_FLAGS_ONLYONE );
rEditEngineItemPool.SetPoolDefaultItem(
SvxFontItem( aFont.GetFamily(), aFont.GetName(),
......
......@@ -87,7 +87,7 @@ OUString GetDefaultFontName( LanguageType nLang, sal_uInt16 nIdent )
SAL_WARN("starmath", "unknown script-type");
}
return Application::GetDefaultDevice()->GetDefaultFont(
return OutputDevice::GetDefaultFont(
pTable[ nIdent ], nLang,
DEFAULTFONT_FLAGS_ONLYONE ).GetName();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment