summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/imagemgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/imagemgr.cxx')
-rw-r--r--sfx2/source/appl/imagemgr.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/appl/imagemgr.cxx b/sfx2/source/appl/imagemgr.cxx
index 9d38ad5930e2..b7819f3efc4a 100644
--- a/sfx2/source/appl/imagemgr.cxx
+++ b/sfx2/source/appl/imagemgr.cxx
@@ -122,8 +122,7 @@ Image SAL_CALL GetImage(
if ( xDocImgMgr.is() )
{
Sequence< Reference< css::graphic::XGraphic > > aGraphicSeq;
- Sequence< OUString > aImageCmdSeq( 1 );
- aImageCmdSeq[0] = aCommandURL;
+ Sequence<OUString> aImageCmdSeq { aCommandURL };
try
{
@@ -181,8 +180,7 @@ Image SAL_CALL GetImage(
}
Sequence< Reference< css::graphic::XGraphic > > aGraphicSeq;
- Sequence< OUString > aImageCmdSeq( 1 );
- aImageCmdSeq[0] = aCommandURL;
+ Sequence<OUString> aImageCmdSeq { aCommandURL };
aGraphicSeq = xModuleImageManager->getImages( nImageType, aImageCmdSeq );