From 0a82645c360158f9cc0fdabe2a52f1ff8f981bed Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Oct 2014 08:57:19 +0200 Subject: loplugin: cstylecast Change-Id: Ia0f5f0d0efbe4693aba347bff32cd694117251fe --- sfx2/source/sidebar/SidebarController.cxx | 2 +- sfx2/source/view/viewprn.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') 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& rMenuData) const { ::boost::shared_ptr pMenu = CreatePopupMenu(rMenuData); - pMenu->SetSelectHdl(LINK(this, SidebarController, OnMenuItemSelected)); + pMenu->SetSelectHdl(LINK(const_cast(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(this), SfxDialogExecutor_Impl, Execute); } const SfxItemSet* GetOptions() const { return _pOptions; } void DisableHelp() { _bHelpDisabled = true; } }; -- cgit