summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-13 17:51:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-13 17:54:32 +0200
commit6d0f3a8479140611464be407c1e61397618e32a4 (patch)
treea6984d84421f5db4d06072c71f431d53365d874d /starmath
parent7c2f000085cdd4ea58a69447a049523f2ad619f8 (diff)
loplugin:staticcall
Change-Id: I7639df64242e5b30f9857363b3be33d61bf28594
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/format.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 9ac77701eb65..51dfe5f5f308 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -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(),
diff --git a/starmath/source/format.cxx b/starmath/source/format.cxx
index 79510805370b..1bc95d0d4445 100644
--- a/starmath/source/format.cxx
+++ b/starmath/source/format.cxx
@@ -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();
}