summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-31 17:25:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-31 17:26:57 +0100
commit6fca59d9c2d3ee3833da6a71d390a2a5b6b73299 (patch)
tree4a367bb7c33626eb753d1d3b7b6fd0743ee94f50 /dbaccess
parent03e17a141fbb4e1242de9d9979b5b699e6840454 (diff)
Simplify code by making getProcessComponentContext() implicit.
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/sqledit.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx
index 5a4788332900..afa0e7fb2ed4 100644
--- a/dbaccess/source/ui/control/sqledit.cxx
+++ b/dbaccess/source/ui/control/sqledit.cxx
@@ -32,7 +32,6 @@
#include "com/sun/star/beans/XMultiPropertySet.hpp"
#include "com/sun/star/beans/XPropertiesChangeListener.hpp"
-#include "comphelper/processfactory.hxx"
#include "officecfg/Office/Common.hxx"
#include "sqledit.hxx"
#include "QueryTextView.hxx"
@@ -108,8 +107,7 @@ OSqlEdit::OSqlEdit( OQueryTextView* pParent, WinBits nWinStyle ) :
// long as there are no derivations:
m_listener = new ChangesListener(*this);
css::uno::Reference< css::beans::XMultiPropertySet > n(
- officecfg::Office::Common::Font::SourceViewFont::get(
- comphelper::getProcessComponentContext()),
+ officecfg::Office::Common::Font::SourceViewFont::get(),
css::uno::UNO_QUERY_THROW);
{
osl::MutexGuard g(m_mutex);
@@ -270,8 +268,7 @@ void OSqlEdit::ImplSetFont()
AllSettings aSettings = GetSettings();
StyleSettings aStyleSettings = aSettings.GetStyleSettings();
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() )
{
@@ -279,9 +276,7 @@ void OSqlEdit::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 );
aStyleSettings.SetFieldFont(aFont);
aSettings.SetStyleSettings(aStyleSettings);