diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-24 08:57:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-24 08:58:05 +0200 |
commit | 0a82645c360158f9cc0fdabe2a52f1ff8f981bed (patch) | |
tree | fdb1035983220bf588f1f77de7a0d5f2b1f0a861 /sfx2 | |
parent | 6ba8b7f5eacac969e4781d63718083a05491b1bc (diff) |
loplugin: cstylecast
Change-Id: Ia0f5f0d0efbe4693aba347bff32cd694117251fe
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; } }; |