diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-04-30 14:24:06 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2020-05-07 10:34:35 +0200 |
commit | 82836b836d552b0e9043222d4a8a2c06dbe0d7da (patch) | |
tree | 590b537b70fe080c50ac89fc2284a61e4997ac62 /include | |
parent | 481b58b5f87abaee3fa556093c30b9fa5bc07c9e (diff) |
Revert "remove some "optimisation" insanity in ScriptEventContainer"
This broke the event order in basic dialog xml,
which in turn broke macro signatures.
This reverts commit 85f08e3e34bea01456eaf8989ac4f77d3900d5c5.
Change-Id: I49ef2eb200571a0fd862770abc4331b6ea053e2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93209
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93607
Tested-by: Jenkins
Diffstat (limited to 'include')
-rw-r--r-- | include/toolkit/controls/eventcontainer.hxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/include/toolkit/controls/eventcontainer.hxx b/include/toolkit/controls/eventcontainer.hxx index 4804a2f2588b..3cb7406f58cd 100644 --- a/include/toolkit/controls/eventcontainer.hxx +++ b/include/toolkit/controls/eventcontainer.hxx @@ -31,13 +31,25 @@ namespace toolkit { -class ScriptEventContainer final : public ::cppu::WeakImplHelper< +// Hashtable to optimize +typedef std::unordered_map +< + OUString, + sal_Int32, + OUStringHash +> +NameContainerNameMap; + + +class ScriptEventContainer : public ::cppu::WeakImplHelper< css::container::XNameContainer, css::container::XContainer > { - std::unordered_map< OUString, css::uno::Any> - mHashMap; - css::uno::Type const mType; + NameContainerNameMap mHashMap; + css::uno::Sequence< OUString > mNames; + std::vector< css::uno::Any > mValues; + sal_Int32 mnElementCount; + css::uno::Type mType; ContainerListenerMultiplexer maContainerListeners; |