summaryrefslogtreecommitdiff
path: root/include/cppuhelper/interfacecontainer.h
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-16 15:56:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-17 13:40:59 +0100
commitec94926665ef70fdd2c0901e104b43f8bea8b888 (patch)
treefa43a39f9563a9c15c7b9e8d62804f390b4ead94 /include/cppuhelper/interfacecontainer.h
parenta3ca9b88b4b38c008efa868844ba7a3105b4bcca (diff)
Use std::vector in OInterfaceContainerHelper instead of Sequence
instead of fighting the fact that Sequence is intended to be immutable getSequence() will become a little slower, but since getSequence() is called 5k times during 'make check', while add/remove are called 3M times, I think it's safe to say mutation is dominant. Change-Id: I23d127c93c589050d6c06c0da47871e1ebe7b52d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86929 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/cppuhelper/interfacecontainer.h')
-rw-r--r--include/cppuhelper/interfacecontainer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cppuhelper/interfacecontainer.h b/include/cppuhelper/interfacecontainer.h
index 43aa68823dda..46ebb8a65baf 100644
--- a/include/cppuhelper/interfacecontainer.h
+++ b/include/cppuhelper/interfacecontainer.h
@@ -49,7 +49,7 @@ namespace detail {
*/
union element_alias
{
- css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > *pAsSequence;
+ std::vector< css::uno::Reference< css::uno::XInterface > > *pAsVector;
css::uno::XInterface * pAsInterface;
element_alias() : pAsInterface(NULL) {}
};