diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-09 15:32:41 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-10 11:22:53 +0000 |
commit | 78ea29d51a23bf75f5753fae68ab8abe1072bbef (patch) | |
tree | 07197f526f98497f893574c5f81eba52adf5135f /sc/source/ui/vba | |
parent | 6ebca1d1094d8fd85e485e504e810a1954befcc3 (diff) |
loplugin:constantparam in sc
Change-Id: I82c78dd880c98532db407b0183a43705be2de67c
Reviewed-on: https://gerrit.libreoffice.org/28777
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbasheetobjects.cxx | 11 |
2 files changed, 5 insertions, 8 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 4e7fe86bc02d..dfc6dcac94b2 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -1148,7 +1148,7 @@ ScVbaRange::getCellRangesForAddress( ScRefFlags& rResFlags, const OUString& sAdd if ( pDocSh ) { ScDocument& rDoc = pDocSh->GetDocument(); - rResFlags = rCellRanges.Parse( sAddress, &rDoc, ScRefFlags::VALID, eConv, 0, cDelimiter ); + rResFlags = rCellRanges.Parse( sAddress, &rDoc, eConv, 0, cDelimiter ); if ( rResFlags & ScRefFlags::VALID ) { return true; diff --git a/sc/source/ui/vba/vbasheetobjects.cxx b/sc/source/ui/vba/vbasheetobjects.cxx index 5c52886efc0d..0c6d36d35d5d 100644 --- a/sc/source/ui/vba/vbasheetobjects.cxx +++ b/sc/source/ui/vba/vbasheetobjects.cxx @@ -340,8 +340,7 @@ public: const uno::Reference< frame::XModel >& rxModel, const uno::Reference< sheet::XSpreadsheet >& rxSheet, const uno::Type& rVbaType, - const OUString& rModelServiceName, - sal_Int16 nComponentType ) throw (uno::RuntimeException); + const OUString& rModelServiceName ) throw (uno::RuntimeException); protected: uno::Reference< container::XIndexContainer > const & createForm() throw (uno::RuntimeException); @@ -364,11 +363,10 @@ ScVbaControlContainer::ScVbaControlContainer( const uno::Reference< frame::XModel >& rxModel, const uno::Reference< sheet::XSpreadsheet >& rxSheet, const uno::Type& rVbaType, - const OUString& rModelServiceName, - sal_Int16 nComponentType ) throw (uno::RuntimeException) : + const OUString& rModelServiceName ) throw (uno::RuntimeException) : ScVbaObjectContainer( rxParent, rxContext, rxModel, rxSheet, rVbaType ), maModelServiceName( rModelServiceName ), - mnComponentType( nComponentType ) + mnComponentType( form::FormComponentType::COMMANDBUTTON ) { } @@ -464,8 +462,7 @@ ScVbaButtonContainer::ScVbaButtonContainer( ScVbaControlContainer( rxParent, rxContext, rxModel, rxSheet, cppu::UnoType<excel::XButton>::get(), - "com.sun.star.form.component.CommandButton", - form::FormComponentType::COMMANDBUTTON ) + "com.sun.star.form.component.CommandButton" ) { } |