diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-08-01 18:43:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-02 15:24:54 +0200 |
commit | 11c2aa79bd80a05cd77eafe5cb1a60db1f4f0742 (patch) | |
tree | aa527151dc5a81d9beae498018d31b04607a9bae /sfx2 | |
parent | 1597cc5b3e07dd24cb4cb10b35b1e93545e4b929 (diff) |
no need to use sequence for this data
Change-Id: I14ddf0399a52a153931142401cf3f1ce8bea8161
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119827
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/inc/eventsupplier.hxx | 3 | ||||
-rw-r--r-- | sfx2/source/notify/eventsupplier.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/inc/eventsupplier.hxx b/sfx2/source/inc/eventsupplier.hxx index 9c14bd3efe31..af3d5bf357d5 100644 --- a/sfx2/source/inc/eventsupplier.hxx +++ b/sfx2/source/inc/eventsupplier.hxx @@ -29,6 +29,7 @@ #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Type.hxx> #include <cppuhelper/implbase.hxx> +#include <vector> namespace comphelper { @@ -42,7 +43,7 @@ class SvxMacro; class SfxEvents_Impl final : public ::cppu::WeakImplHelper< css::container::XNameReplace, css::document::XEventListener > { css::uno::Sequence< OUString > maEventNames; - css::uno::Sequence< css::uno::Any > maEventData; + std::vector< css::uno::Any > maEventData; css::uno::Reference< css::document::XEventBroadcaster > mxBroadcaster; ::osl::Mutex maMutex; SfxObjectShell *mpObjShell; diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx index 26028a16e4b5..00135b2a0654 100644 --- a/sfx2/source/notify/eventsupplier.cxx +++ b/sfx2/source/notify/eventsupplier.cxx @@ -319,7 +319,7 @@ SfxEvents_Impl::SfxEvents_Impl( SfxObjectShell* pShell, else maEventNames = rtl::Reference<GlobalEventConfig>(new GlobalEventConfig)->getElementNames(); - maEventData = uno::Sequence < uno::Any > ( maEventNames.getLength() ); + maEventData.resize( maEventNames.getLength() ); mpObjShell = pShell; mxBroadcaster = xBroadcaster; |