diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 12:22:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 12:18:55 +0000 |
commit | 25aec383f95fded43b3fe5fc588b4ebdc6d7d272 (patch) | |
tree | 846cce228d7ff120abc40b7767b251c2e04b2a30 /sfx2 | |
parent | 35f5833ca35dc170b67ed9f8e288302eb06eb972 (diff) |
use initialiser for Sequence<OUString>
replaced using:
git grep -lP 'Sequence.*OUString.*\(\s*1\s*\)'
| xargs perl -0777 -pi -e
"s/Sequence<\s*OUString\s*> (\w+)\(\s*1\s*\);
.*\[0\] = (\S+);/Sequence<OUString> \1 { \2 };/g"
Change-Id: I20ad0489da887a9712982531c3b127339bb8b3b9
Reviewed-on: https://gerrit.libreoffice.org/19969
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/helpinterceptor.cxx | 3 | ||||
-rw-r--r-- | sfx2/source/appl/imagemgr.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/sfx2/source/appl/helpinterceptor.cxx b/sfx2/source/appl/helpinterceptor.cxx index db7d2831b90a..cb7c58680a44 100644 --- a/sfx2/source/appl/helpinterceptor.cxx +++ b/sfx2/source/appl/helpinterceptor.cxx @@ -219,8 +219,7 @@ Sequence< OUString > SAL_CALL HelpInterceptor_Impl::getInterceptedURLs() throw( RuntimeException, std::exception ) { - Sequence< OUString > aURLList( 1 ); - aURLList[0] = "vnd.sun.star.help://*"; + Sequence<OUString> aURLList { "vnd.sun.star.help://*" }; return aURLList; } 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 ); |