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 /vcl/unx/gtk | |
parent | 03e17a141fbb4e1242de9d9979b5b699e6840454 (diff) |
Simplify code by making getProcessComponentContext() implicit.
Diffstat (limited to 'vcl/unx/gtk')
-rw-r--r-- | vcl/unx/gtk/gdi/salprn-gtk.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/unx/gtk/gdi/salprn-gtk.cxx b/vcl/unx/gtk/gdi/salprn-gtk.cxx index 587a75492fb3..ffa584cd2c43 100644 --- a/vcl/unx/gtk/gdi/salprn-gtk.cxx +++ b/vcl/unx/gtk/gdi/salprn-gtk.cxx @@ -183,9 +183,8 @@ lcl_getGtkSalInstance() bool lcl_useSystemPrintDialog() { - uno::Reference<uno::XComponentContext> const xCtxt(comphelper::getProcessComponentContext()); - return officecfg::Office::Common::Misc::UseSystemPrintDialog::get(xCtxt) - && officecfg::Office::Common::Misc::ExperimentalMode::get(xCtxt) + return officecfg::Office::Common::Misc::UseSystemPrintDialog::get() + && officecfg::Office::Common::Misc::ExperimentalMode::get() && lcl_getGtkSalInstance().getPrintWrapper()->supportsPrinting(); } |