diff options
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; |