svl/source/fsstor/ostreamcontainer.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
New commits: commit 68314bdba8d91a7e30c0c061fd3e31847c6a8187 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Oct 16 13:43:41 2021 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sat Oct 16 20:58:09 2021 +0200 Simplify vector initialization in svl Change-Id: I8ff1eb008f3173791c7c1020db08d29451998f42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123699 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> 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());