diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-29 10:29:03 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-01 07:31:06 +0100 |
commit | 38979c6abd4bcac13e9674187e73ccf675fbaf55 (patch) | |
tree | b3ea0d956dfb5e5331eee22e4459a0190598cf94 /xmlscript | |
parent | 8cb57be792e6991c38cf5d4434569dc118dd0ed4 (diff) |
Prepare for removal of non-const operator[] from Sequence in xmlscript
Change-Id: I166e51e13974154dba4749568b1232eecd2fb8cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124417
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index ab9b47d0e619..2bad2426c9ab 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -855,8 +855,7 @@ bool ImportContext::importGraphicOrImageProperty( uno::Reference<document::XGraphicStorageHandler> xGraphicStorageHandler; if ( xDocStorage.is() ) { - uno::Sequence< Any > aArgs( 1 ); - aArgs[ 0 ] <<= xDocStorage->getDocumentStorage(); + uno::Sequence< Any > aArgs{ Any(xDocStorage->getDocumentStorage()) }; xGraphicStorageHandler.set( _pImport->getComponentContext()->getServiceManager()->createInstanceWithArgumentsAndContext( "com.sun.star.comp.Svx.GraphicImportHelper" , aArgs, _pImport->getComponentContext() ), UNO_QUERY ); |