embeddedobj/source/msole/oleembed.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8133aa39939bd65c7c4078ff002ab88675e84ccc
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sat Oct 16 19:33:20 2021 +0300
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Oct 16 20:51:17 2021 +0200

    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 <[email protected]>

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 >();

Reply via email to