diff options
-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; |