diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-31 17:25:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-31 17:26:57 +0100 |
commit | 6fca59d9c2d3ee3833da6a71d390a2a5b6b73299 (patch) | |
tree | 4a367bb7c33626eb753d1d3b7b6fd0743ee94f50 /basctl | |
parent | Fix fdo#42543: Don't paint a frame around the list of edit boxes. (diff) | |
download | core-6fca59d9c2d3ee3833da6a71d390a2a5b6b73299.tar.gz core-6fca59d9c2d3ee3833da6a71d390a2a5b6b73299.zip |
Simplify code by making getProcessComponentContext() implicit.
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2b.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
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 ); |