From 8133aa39939bd65c7c4078ff002ab88675e84ccc Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 16 Oct 2021 19:33:20 +0300 Subject: Fix a forgotten return of the value ... ever since its introduction in commit 5ea5c0afebd272d5f44e6524c0f67b5317639919 Change-Id: Ic2f082db43c961185921137c6b64b2e1abef28e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123704 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- embeddedobj/source/msole/oleembed.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index ba678d4dfb87..01cf44b9fcaa 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -110,8 +110,7 @@ uno::Sequence< sal_Int32 > OleEmbeddedObject::GetIntermediateVerbsSequence_Impl( // actually there will be only one verb if ( m_nObjectState == embed::EmbedStates::RUNNING && nNewState == embed::EmbedStates::ACTIVE ) { - uno::Sequence< sal_Int32 > aVerbs( 1 ); - aVerbs[0] = embed::EmbedVerbs::MS_OLEVERB_OPEN; + return { embed::EmbedVerbs::MS_OLEVERB_OPEN }; } return uno::Sequence< sal_Int32 >(); -- cgit