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 /sfx2/source/appl/appbas.cxx | |
parent | 03e17a141fbb4e1242de9d9979b5b699e6840454 (diff) |
Simplify code by making getProcessComponentContext() implicit.
Diffstat (limited to 'sfx2/source/appl/appbas.cxx')
-rw-r--r-- | sfx2/source/appl/appbas.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sfx2/source/appl/appbas.cxx b/sfx2/source/appl/appbas.cxx index 58b95c0687e5..c16338bee821 100644 --- a/sfx2/source/appl/appbas.cxx +++ b/sfx2/source/appl/appbas.cxx @@ -28,7 +28,6 @@ #include <com/sun/star/frame/XDesktop.hpp> #include <com/sun/star/script/XLibraryContainer.hpp> -#include <comphelper/processfactory.hxx> #include <com/sun/star/uno/Reference.h> #include <basic/basrdll.hxx> #include <officecfg/Office/Common.hxx> @@ -183,11 +182,9 @@ void SfxApplication::PropExec_Impl( SfxRequest &rReq ) { SFX_REQUEST_ARG(rReq, pCountItem, SfxUInt16Item, nSID, sal_False); boost::shared_ptr< comphelper::ConfigurationChanges > batch( - comphelper::ConfigurationChanges::create( - comphelper::getProcessComponentContext())); + comphelper::ConfigurationChanges::create()); officecfg::Office::Common::Undo::Steps::set( - comphelper::getProcessComponentContext(), batch, - pCountItem->GetValue()); + pCountItem->GetValue(), batch); batch->commit(); break; } @@ -254,8 +251,7 @@ void SfxApplication::PropState_Impl( SfxItemSet &rSet ) rSet.Put( SfxUInt16Item( SID_ATTR_UNDO_COUNT, - officecfg::Office::Common::Undo::Steps::get( - comphelper::getProcessComponentContext()))); + officecfg::Office::Common::Undo::Steps::get())); break; case SID_UPDATE_VERSION: |