[Libreoffice-commits] core.git: sfx2/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Mon Aug 2 13:25:29 UTC 2021
sfx2/source/inc/eventsupplier.hxx | 3 ++-
sfx2/source/notify/eventsupplier.cxx | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 11c2aa79bd80a05cd77eafe5cb1a60db1f4f0742
Author: Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Sun Aug 1 18:43:50 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Aug 2 15:24:54 2021 +0200
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list