diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-08-10 22:20:30 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-08-12 15:23:53 +0200 |
commit | 4721cbb1bb118d33ac9fcf93dda8c083b364003d (patch) | |
tree | f958d6b46d40fd573483139512b4c31dbd6e153b /sc/source/ui/vba/vbasheetobject.cxx | |
parent | a684613daf9ed5670c5f80267cc1bea0b878b1f6 (diff) |
Mark Sequence const in sc
It ensures that const begin()/end() methods will be called,
removing any overhead.
fca94779872b8ba0b0583d0b7068f1a46beb88c5 follow-up.
Change-Id: Id680744abb1b3887f25c9bfa033106de18a9c2d0
Reviewed-on: https://gerrit.libreoffice.org/77250
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/vba/vbasheetobject.cxx')
-rw-r--r-- | sc/source/ui/vba/vbasheetobject.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/vba/vbasheetobject.cxx b/sc/source/ui/vba/vbasheetobject.cxx index bf88b991f05d..2df219af7874 100644 --- a/sc/source/ui/vba/vbasheetobject.cxx +++ b/sc/source/ui/vba/vbasheetobject.cxx @@ -318,7 +318,7 @@ OUString SAL_CALL ScVbaControlObjectBase::getOnAction() { uno::Reference< script::XEventAttacherManager > xEventMgr( mxFormIC, uno::UNO_QUERY_THROW ); sal_Int32 nIndex = getModelIndexInForm(); - uno::Sequence< script::ScriptEventDescriptor > aEvents = xEventMgr->getScriptEvents( nIndex ); + const uno::Sequence< script::ScriptEventDescriptor > aEvents = xEventMgr->getScriptEvents( nIndex ); if( aEvents.hasElements() ) { const OUString aScriptType = "Script"; |