summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-02 10:25:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-02 13:07:00 +0200
commite3c961e6a3917d95534652e0f982918cc1079015 (patch)
tree1efa9761d9d2159f06800f1f15b625a7dcc15d47 /ucbhelper
parentfa229eb1ecbcbb7b861679158ad706e37d454526 (diff)
reduce allocations in InterceptedInteraction
the list of intercepted interactions is static per sub-class, so just pass up a o3tl::span at constructor time. Change-Id: Ib45c5a3338e0eb3848486dfc707052f07492eb61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157480 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/client/interceptedinteraction.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucbhelper/source/client/interceptedinteraction.cxx b/ucbhelper/source/client/interceptedinteraction.cxx
index 96b3fd32cb41..a6a7fe11806e 100644
--- a/ucbhelper/source/client/interceptedinteraction.cxx
+++ b/ucbhelper/source/client/interceptedinteraction.cxx
@@ -27,14 +27,14 @@ InterceptedInteraction::InterceptedInteraction()
{
}
-void InterceptedInteraction::setInterceptedHandler(const css::uno::Reference< css::task::XInteractionHandler >& xInterceptedHandler)
+InterceptedInteraction::InterceptedInteraction(o3tl::span< const InterceptedRequest > lInterceptions)
+ : m_lInterceptions(lInterceptions)
{
- m_xInterceptedHandler = xInterceptedHandler;
}
-void InterceptedInteraction::setInterceptions(::std::vector< InterceptedRequest >&& lInterceptions)
+void InterceptedInteraction::setInterceptedHandler(const css::uno::Reference< css::task::XInteractionHandler >& xInterceptedHandler)
{
- m_lInterceptions = std::move(lInterceptions);
+ m_xInterceptedHandler = xInterceptedHandler;
}
InterceptedInteraction::EInterceptionState InterceptedInteraction::intercepted(