summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-21 22:56:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-21 23:30:59 +0200
commit6cc508aec4e30c72c00eac9e77fb6dd10cc093e9 (patch)
tree7e812b5dede4b386e0d60859130d415cac1d6494 /sfx2
parentb13c8de265a6454c4677f52fd9a3440ac3279c51 (diff)
Remove comphelper::ComponentContext
Change-Id: Idc5974e5a2ec68e8f1b2312a88fab15092c82788
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/SidebarPanel.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sfx2/source/sidebar/SidebarPanel.cxx b/sfx2/source/sidebar/SidebarPanel.cxx
index 75f059aa5114..ef9958c22bf6 100644
--- a/sfx2/source/sidebar/SidebarPanel.cxx
+++ b/sfx2/source/sidebar/SidebarPanel.cxx
@@ -26,7 +26,6 @@
#include <vos/mutex.hxx>
#include <vcl/svapp.hxx>
#include <svl/smplhint.hxx>
-#include <comphelper/componentcontext.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/awt/XWindowPeer.hpp>
@@ -103,11 +102,11 @@ cssu::Reference<css::rendering::XCanvas> SAL_CALL SidebarPanel::getCanvas (void)
aArg[3] = makeAny(sal_False);
aArg[4] = makeAny(mpPanel->GetComponentInterface());
- const ::comphelper::ComponentContext aComponentContext (::comphelper::getProcessServiceFactory());
+ css::uno::Reference<css::uno::XComponentContext> context(
+ comphelper::getProcessComponentContext());
mxCanvas = Reference<rendering::XCanvas>(
- aComponentContext.createComponentWithArguments(
- "com.sun.star.rendering.Canvas.VCL",
- aArg),
+ context->getServiceManager()->createInstanceWithArgumentsAndContext(
+ "com.sun.star.rendering.Canvas.VCL", aArg, context),
UNO_QUERY);
}