summaryrefslogtreecommitdiff
path: root/sw/source/ui/ribbar
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 /sw/source/ui/ribbar
parent03e17a141fbb4e1242de9d9979b5b699e6840454 (diff)
Simplify code by making getProcessComponentContext() implicit.
Diffstat (limited to 'sw/source/ui/ribbar')
-rw-r--r--sw/source/ui/ribbar/inputwin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/ui/ribbar/inputwin.cxx b/sw/source/ui/ribbar/inputwin.cxx
index 34497e82f274..fe643d940e90 100644
--- a/sw/source/ui/ribbar/inputwin.cxx
+++ b/sw/source/ui/ribbar/inputwin.cxx
@@ -28,7 +28,6 @@
#include "sal/config.h"
-#include <comphelper/processfactory.hxx>
#include <officecfg/Office/Common.hxx>
#include <tools/gen.hxx>
#include <sfx2/imgmgr.hxx>
@@ -243,8 +242,7 @@ void SwInputWindow::ShowWin()
{
m_bResetUndo = true;
SAL_WARN_IF(
- officecfg::Office::Common::Undo::Steps::get(
- comphelper::getProcessComponentContext()) <= 0,
+ officecfg::Office::Common::Undo::Steps::get() <= 0,
"sw", "/org.openoffice.Office.Common/Undo/Steps <= 0");
m_bDoesUndo = pWrtShell->DoesUndo();