From 6fca59d9c2d3ee3833da6a71d390a2a5b6b73299 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 31 Jan 2012 17:25:42 +0100 Subject: Simplify code by making getProcessComponentContext() implicit. --- basctl/source/basicide/baside2b.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index a1f076685b9a..f74e134d56eb 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -195,8 +195,8 @@ EditorWindow::EditorWindow( Window* pParent ) : // long as there are no derivations: listener_ = new ChangesListener(*this); Reference< beans::XMultiPropertySet > n( - officecfg::Office::Common::Font::SourceViewFont::get( - comphelper::getProcessComponentContext()), UNO_QUERY_THROW); + officecfg::Office::Common::Font::SourceViewFont::get(), + UNO_QUERY_THROW); { osl::MutexGuard g(mutex_); notifier_ = n; @@ -816,8 +816,7 @@ void EditorWindow::ImpDoHighlight( sal_uLong nLine ) void EditorWindow::ImplSetFont() { rtl::OUString sFontName( - officecfg::Office::Common::Font::SourceViewFont::FontName::get( - comphelper::getProcessComponentContext() ). + officecfg::Office::Common::Font::SourceViewFont::FontName::get(). get_value_or( rtl::OUString() ) ); if ( sFontName.isEmpty() ) { @@ -825,9 +824,7 @@ void EditorWindow::ImplSetFont() sFontName = aTmpFont.GetName(); } Size aFontSize( - 0, - officecfg::Office::Common::Font::SourceViewFont::FontHeight::get( - comphelper::getProcessComponentContext() ) ); + 0, officecfg::Office::Common::Font::SourceViewFont::FontHeight::get() ); Font aFont( sFontName, aFontSize ); aFont.SetColor( GetSettings().GetStyleSettings().GetFieldTextColor() ); SetPointFont( aFont ); -- cgit v1.2.3