summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/module/ToolBarModule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/module/ToolBarModule.cxx')
-rw-r--r--sd/source/ui/framework/module/ToolBarModule.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/sd/source/ui/framework/module/ToolBarModule.cxx b/sd/source/ui/framework/module/ToolBarModule.cxx
index 3cecf7b031f0..de7f3e583126 100644
--- a/sd/source/ui/framework/module/ToolBarModule.cxx
+++ b/sd/source/ui/framework/module/ToolBarModule.cxx
@@ -41,20 +41,18 @@ namespace sd::framework {
//===== ToolBarModule =========================================================
ToolBarModule::ToolBarModule (
- const Reference<frame::XController>& rxController)
+ const rtl::Reference<sd::DrawController>& rxController)
: mpBase(nullptr),
mbMainViewSwitchUpdatePending(false)
{
// Tunnel through the controller to obtain a ViewShellBase.
- auto pController = comphelper::getFromUnoTunnel<sd::DrawController>(rxController);
- if (pController != nullptr)
- mpBase = pController->GetViewShellBase();
+ if (rxController != nullptr)
+ mpBase = rxController->GetViewShellBase();
- Reference<XControllerManager> xControllerManager (rxController, UNO_QUERY);
- if (!xControllerManager.is())
+ if (!rxController.is())
return;
- mxConfigurationController = xControllerManager->getConfigurationController();
+ mxConfigurationController = rxController->getConfigurationController();
if (!mxConfigurationController.is())
return;