diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:13:45 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-31 15:48:50 +0100 |
commit | 3d469248ada8632a9d86efc80f2ac97dcb617c27 (patch) | |
tree | f444eae02ed277dc7520c0d49afe84b7ad72936b /sw/source/uibase/uiview/viewling.cxx | |
parent | e5876404a3a70754b8a49aa0f405847b3fad96d8 (diff) |
Prepare for removal of non-const operator[] from Sequence in sw
Change-Id: Ie9530262e4addec01091cc1147e68be5b5a782f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124398
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sw/source/uibase/uiview/viewling.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 9497927262b0..ba3f2df868bf 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -802,9 +802,10 @@ void SwView::ExecSmartTagPopup( const Point& rPt ) m_pWrtShell->LockView( true ); m_pWrtShell->Push(); - css::uno::Sequence< css::uno::Any > aArgs( 2 ); - aArgs[0] <<= comphelper::makePropertyValue( "Frame", GetDispatcher().GetFrame()->GetFrame().GetFrameInterface() ); - aArgs[1] <<= comphelper::makePropertyValue( "CommandURL", OUString( ".uno:OpenSmartTagMenuOnCursor" ) ); + css::uno::Sequence< css::uno::Any > aArgs{ + css::uno::Any(comphelper::makePropertyValue( "Frame", GetDispatcher().GetFrame()->GetFrame().GetFrameInterface() )), + css::uno::Any(comphelper::makePropertyValue( "CommandURL", OUString( ".uno:OpenSmartTagMenuOnCursor" ) )) + }; css::uno::Reference< css::uno::XComponentContext > xContext = comphelper::getProcessComponentContext(); css::uno::Reference< css::frame::XPopupMenuController > xPopupController( |