diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:03:36 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-31 06:56:49 +0100 |
commit | ce22935a8586eda71fd29d4ff969d9cd7a2ec15b (patch) | |
tree | ea0e84fe6d4b5b6e6ac5f3cc4ba1295dcf1bcdb1 /sfx2/source/inet | |
parent | c6af59b234e8eb8182dc7f686290524feafd6ed6 (diff) |
Prepare for removal of non-const operator[] from Sequence in sfx2
Change-Id: I0cdce64983901a6cc3b50dc9873a370ff08b9eb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124387
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2/source/inet')
-rw-r--r-- | sfx2/source/inet/inettbc.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx index 0db4f7729008..0966d1c5a6ec 100644 --- a/sfx2/source/inet/inettbc.cxx +++ b/sfx2/source/inet/inettbc.cxx @@ -25,6 +25,8 @@ #include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/task/XInteractionHandler.hpp> #include <com/sun/star/util/XURLTransformer.hpp> + +#include <comphelper/propertyvalue.hxx> #include <svl/stritem.hxx> #include <unotools/historyoptions.hxx> #include <vcl/toolbox.hxx> @@ -144,11 +146,10 @@ void SfxURLToolBoxControl_Impl::OpenURL( const OUString& rName ) const if ( !xDispatch.is() ) return; - Sequence< PropertyValue > aArgs( 2 ); - aArgs[0].Name = "Referer"; - aArgs[0].Value <<= OUString( "private:user" ); - aArgs[1].Name = "FileName"; - aArgs[1].Value <<= aName; + Sequence< PropertyValue > aArgs{ + comphelper::makePropertyValue("Referer", OUString( "private:user" )), + comphelper::makePropertyValue("FileName", aName) + }; SfxURLToolBoxControl_Impl::ExecuteInfo* pExecuteInfo = new SfxURLToolBoxControl_Impl::ExecuteInfo; pExecuteInfo->xDispatch = xDispatch; |