From 0d50804e1c0c0ea2a5cd73fa3fa2a9ff0a0e7048 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Nov 2017 09:52:08 +0200 Subject: loplugin:constparams in various(2) Change-Id: I533a7eb724b15e168a28dc92cd5962a39bc96e7c Reviewed-on: https://gerrit.libreoffice.org/44313 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- extensions/source/propctrlr/propertyeditor.cxx | 4 ++-- extensions/source/propctrlr/propertyeditor.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions') diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx index 02e69a623bf4..4f8c355c4439 100644 --- a/extensions/source/propctrlr/propertyeditor.cxx +++ b/extensions/source/propctrlr/propertyeditor.cxx @@ -187,13 +187,13 @@ namespace pcr } - OBrowserPage* OPropertyEditor::getPage( sal_uInt16& _rPageId ) + OBrowserPage* OPropertyEditor::getPage( sal_uInt16 _rPageId ) { return static_cast< OBrowserPage* >( m_aTabControl->GetTabPage( _rPageId ) ); } - const OBrowserPage* OPropertyEditor::getPage( sal_uInt16& _rPageId ) const + const OBrowserPage* OPropertyEditor::getPage( sal_uInt16 _rPageId ) const { return const_cast< OPropertyEditor* >( this )->getPage( _rPageId ); } diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx index 0c7adb04554f..8b49ea967e0a 100644 --- a/extensions/source/propctrlr/propertyeditor.hxx +++ b/extensions/source/propctrlr/propertyeditor.hxx @@ -114,8 +114,8 @@ namespace pcr using Window::SetHelpText; using Window::Update; - OBrowserPage* getPage( sal_uInt16& _rPageId ); - const OBrowserPage* getPage( sal_uInt16& _rPageId ) const; + OBrowserPage* getPage( sal_uInt16 _rPageId ); + const OBrowserPage* getPage( sal_uInt16 _rPageId ) const; OBrowserPage* getPage( const OUString& _rPropertyName ); const OBrowserPage* getPage( const OUString& _rPropertyName ) const; -- cgit