diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewprn.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 320f2b2b9077..2da9d4863a40 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -867,7 +867,7 @@ void SidebarController::ShowPopupMenu ( const ::std::vector<TabBar::DeckMenuData>& rMenuData) const { ::boost::shared_ptr<PopupMenu> pMenu = CreatePopupMenu(rMenuData); - pMenu->SetSelectHdl(LINK(this, SidebarController, OnMenuItemSelected)); + pMenu->SetSelectHdl(LINK(const_cast<SidebarController*>(this), SidebarController, OnMenuItemSelected)); // pass toolbox button rect so the menu can stay open on button up Rectangle aBox (rButtonBox); diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx index 5dbdc3b0ffc4..bef2e880a286 100644 --- a/sfx2/source/view/viewprn.cxx +++ b/sfx2/source/view/viewprn.cxx @@ -423,7 +423,7 @@ public: SfxDialogExecutor_Impl( SfxViewShell* pViewSh, PrinterSetupDialog* pParent ); ~SfxDialogExecutor_Impl() { delete _pOptions; } - Link GetLink() const { return LINK( this, SfxDialogExecutor_Impl, Execute); } + Link GetLink() const { return LINK(const_cast<SfxDialogExecutor_Impl*>(this), SfxDialogExecutor_Impl, Execute); } const SfxItemSet* GetOptions() const { return _pOptions; } void DisableHelp() { _bHelpDisabled = true; } }; |