diff options
| author | Noel Grandin <noel@peralex.com> | 2013-05-31 11:08:41 +0200 |
|---|---|---|
| committer | Noel Grandin <noel@peralex.com> | 2013-06-03 10:00:01 +0200 |
| commit | 65edd1c8a87abf3cfeaaa6490795be0d06049bea (patch) | |
| tree | 6b1cac02ed09271a06eede262331a44f20d44bf2 /svx/source/sidebar/ContextChangeEventMultiplexer.cxx | |
| parent | e6c13f2846c684410e060701cbf1deb9bcaec890 (diff) | |
fdo#46808, Convert ComponentContext to XComponentContext
Change-Id: Ie51549cb77cfc026be85c9d9bad9b9e7ef37334f
Diffstat (limited to 'svx/source/sidebar/ContextChangeEventMultiplexer.cxx')
| -rw-r--r-- | svx/source/sidebar/ContextChangeEventMultiplexer.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/sidebar/ContextChangeEventMultiplexer.cxx b/svx/source/sidebar/ContextChangeEventMultiplexer.cxx index 427c37a37d03..602a22ee926d 100644 --- a/svx/source/sidebar/ContextChangeEventMultiplexer.cxx +++ b/svx/source/sidebar/ContextChangeEventMultiplexer.cxx @@ -21,7 +21,7 @@ #include <com/sun/star/ui/ContextChangeEventObject.hpp> #include <com/sun/star/ui/XContextChangeEventMultiplexer.hpp> #include <com/sun/star/ui/ContextChangeEventMultiplexer.hpp> -#include <com/sun/star/frame/XModuleManager.hpp> +#include <com/sun/star/frame/ModuleManager.hpp> #include <comphelper/processfactory.hxx> #include <comphelper/componentcontext.hxx> #include <sfx2/viewsh.hxx> @@ -69,10 +69,8 @@ void ContextChangeEventMultiplexer::NotifyContextChange ( { try { - const ::comphelper::ComponentContext aContext (::comphelper::getProcessServiceFactory()); - const Reference<frame::XModuleManager> xModuleManager ( - aContext.createComponent("com.sun.star.frame.ModuleManager" ), - UNO_QUERY_THROW ); + const Reference<frame::XModuleManager> xModuleManager = + frame::ModuleManager::create( comphelper::getProcessComponentContext() ); return xModuleManager->identify(rxFrame); } catch (const Exception&) |
