diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-05-07 08:12:45 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-05-07 09:24:28 +0200 |
commit | 6e31ddbe83115dd5283c5b0f31d92396290895ae (patch) | |
tree | cd6602c6b3fbb3eb0f2c297bed934808d57758f0 /toolkit | |
parent | d1786724b8e8e474e1f7e39012c1f19611841dc0 (diff) |
Add comment about insertion order
Change-Id: I650316c0c4bc31a861b3d96586a6a0aae57bd054
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93537
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/inc/controls/eventcontainer.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toolkit/inc/controls/eventcontainer.hxx b/toolkit/inc/controls/eventcontainer.hxx index 396578432fd1..beca65e3e38f 100644 --- a/toolkit/inc/controls/eventcontainer.hxx +++ b/toolkit/inc/controls/eventcontainer.hxx @@ -43,6 +43,9 @@ class ScriptEventContainer final : public ::cppu::WeakImplHelper< css::container::XNameContainer, css::container::XContainer > { + // The map needs to keep the insertion order, otherwise Macro signatures would get broken + // if the order changes here (Dialog xml files are digitally signed too). + // Thus a std::map or std::unordered_map can't be used. NameContainerNameMap mHashMap; css::uno::Sequence< OUString > mNames; std::vector< css::uno::Any > mValues; |