summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-16 13:43:41 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-16 20:58:09 +0200
commit68314bdba8d91a7e30c0c061fd3e31847c6a8187 (patch)
tree6357ea6ebfd976dcbc5604d3309f045a333b0b69 /svl
parent8133aa39939bd65c7c4078ff002ab88675e84ccc (diff)
Simplify vector initialization in svl
Change-Id: I8ff1eb008f3173791c7c1020db08d29451998f42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123699 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/fsstor/ostreamcontainer.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx
index 99b8afb1e9c0..bfa6962ee9c4 100644
--- a/svl/source/fsstor/ostreamcontainer.cxx
+++ b/svl/source/fsstor/ostreamcontainer.cxx
@@ -141,9 +141,11 @@ uno::Sequence< uno::Type > SAL_CALL OFSStreamContainer::getTypes()
if ( !m_aTypes.hasElements() )
{
- std::vector<uno::Type> tmp;
- tmp.push_back(cppu::UnoType<lang::XTypeProvider>::get());
- tmp.push_back(cppu::UnoType<embed::XExtendedStorageStream>::get());
+ std::vector<uno::Type> tmp
+ {
+ cppu::UnoType<lang::XTypeProvider>::get(),
+ cppu::UnoType<embed::XExtendedStorageStream>::get()
+ };
if ( m_xSeekable.is() )
tmp.push_back(cppu::UnoType<io::XSeekable>::get());