summaryrefslogtreecommitdiff
path: root/framework/source/uielement/objectmenucontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-19 17:44:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-20 09:19:54 +0200
commit039d9b97b720d9dc735413b292382104b63014d5 (patch)
treee366b57f1bf03ded002414f52bccddf98fb94e2e /framework/source/uielement/objectmenucontroller.cxx
parentc0565f7011fa6d6b295e522c023127970ccce822 (diff)
loplugin:constparams in framework
Change-Id: Iecd19a0cbb3cc78158c17bfa064cc23bafc44b18 Reviewed-on: https://gerrit.libreoffice.org/40206 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/uielement/objectmenucontroller.cxx')
-rw-r--r--framework/source/uielement/objectmenucontroller.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/objectmenucontroller.cxx b/framework/source/uielement/objectmenucontroller.cxx
index 0cba9ca7f148..627ae94114c4 100644
--- a/framework/source/uielement/objectmenucontroller.cxx
+++ b/framework/source/uielement/objectmenucontroller.cxx
@@ -77,7 +77,7 @@ public:
virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
private:
- void fillPopupMenu( const css::uno::Sequence< css::embed::VerbDescriptor >& rVerbCommandSeq, css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
+ void fillPopupMenu( const css::uno::Sequence< css::embed::VerbDescriptor >& rVerbCommandSeq, css::uno::Reference< css::awt::XPopupMenu > const & rPopupMenu );
};
ObjectMenuController::ObjectMenuController( const css::uno::Reference< css::uno::XComponentContext >& xContext ) :
@@ -86,7 +86,7 @@ ObjectMenuController::ObjectMenuController( const css::uno::Reference< css::uno:
}
// private function
-void ObjectMenuController::fillPopupMenu( const Sequence< css::embed::VerbDescriptor >& rVerbCommandSeq, Reference< css::awt::XPopupMenu >& rPopupMenu )
+void ObjectMenuController::fillPopupMenu( const Sequence< css::embed::VerbDescriptor >& rVerbCommandSeq, Reference< css::awt::XPopupMenu > const & rPopupMenu )
{
const css::embed::VerbDescriptor* pVerbCommandArray = rVerbCommandSeq.getConstArray();
VCLXPopupMenu* pPopupMenu = static_cast<VCLXPopupMenu *>(VCLXMenu::GetImplementation( rPopupMenu ));