diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-06 16:44:35 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-06 20:53:03 +0100 |
commit | 95d351871886e8c72f34e68140dade4fc21ad18b (patch) | |
tree | d886149a027f8037b143e3af97d7a23d07d8f1da /dbaccess | |
parent | 170ff1fb645af843cdbb084f79544ceb016d92c8 (diff) |
Use std::initializer_list to construct Sequence
Change-Id: I5b3b97922befbe094c0ebe9adf4f195a83cd24af
Reviewed-on: https://gerrit.libreoffice.org/44365
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/ModelImpl.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx index 27b9f6fe8069..48643a9c4892 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.cxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx @@ -470,14 +470,14 @@ void ODatabaseModelImpl::impl_construct_nothrow() try { // the set of property value types in the bag is limited: - Sequence< Type > aAllowedTypes(6); - Type* pAllowedType = aAllowedTypes.getArray(); - *pAllowedType++ = ::cppu::UnoType<sal_Bool>::get(); - *pAllowedType++ = ::cppu::UnoType<double>::get(); - *pAllowedType++ = ::cppu::UnoType<OUString>::get(); - *pAllowedType++ = ::cppu::UnoType<sal_Int32>::get(); - *pAllowedType++ = ::cppu::UnoType<sal_Int16>::get(); - *pAllowedType++ = cppu::UnoType<Sequence< Any >>::get(); + Sequence< Type > aAllowedTypes({ + cppu::UnoType<sal_Bool>::get(), + cppu::UnoType<double>::get(), + cppu::UnoType<OUString>::get(), + cppu::UnoType<sal_Int32>::get(), + cppu::UnoType<sal_Int16>::get(), + cppu::UnoType<Sequence< Any >>::get(), + }); m_xSettings = PropertyBag::createWithTypes( m_aContext, aAllowedTypes, false/*AllowEmptyPropertyName*/, true/*AutomaticAddition*/ ); |