summaryrefslogtreecommitdiff
path: root/embeddedobj
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-18 10:41:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-18 17:42:04 +0100
commitc4aa4b55e21915ca072daa7db93edabc043f26ab (patch)
tree5505e8dfdf54888f1c7d92764e672f4ce73a3c7b /embeddedobj
parent54b80473f4a4b8ac3dfc1936b2214733474a3485 (diff)
cid#1495784 Missing move assignment operator
Change-Id: I44004ad1628fed0c71392a000cd0633107732651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127027 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'embeddedobj')
-rw-r--r--embeddedobj/source/general/intercept.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/embeddedobj/source/general/intercept.cxx b/embeddedobj/source/general/intercept.cxx
index 3c4990031376..58a7ed49bcc0 100644
--- a/embeddedobj/source/general/intercept.cxx
+++ b/embeddedobj/source/general/intercept.cxx
@@ -250,12 +250,12 @@ uno::Sequence< uno::Reference< frame::XDispatch > > SAL_CALL
Interceptor::queryDispatches(
const uno::Sequence<frame::DispatchDescriptor >& Requests )
{
- uno::Sequence< uno::Reference< frame::XDispatch > > aRet;
osl::MutexGuard aGuard(m_aMutex);
- if(m_xSlaveDispatchProvider.is())
- aRet = m_xSlaveDispatchProvider->queryDispatches(Requests);
- else
- aRet.realloc(Requests.getLength());
+ typedef uno::Sequence<uno::Reference<frame::XDispatch>> DispatchSeq;
+ DispatchSeq aRet = m_xSlaveDispatchProvider.is()
+ ? m_xSlaveDispatchProvider->queryDispatches(Requests)
+ : DispatchSeq(Requests.getLength());
+
auto aRetRange = asNonConstRange(aRet);
for(sal_Int32 i = 0; i < Requests.getLength(); ++i)
if(m_aInterceptedURL[0] == Requests[i].FeatureURL.Complete)