Kaydet (Commit) 95d35187 authored tarafından Mike Kaganski's avatar Mike Kaganski

Use std::initializer_list to construct Sequence

Change-Id: I5b3b97922befbe094c0ebe9adf4f195a83cd24af
Reviewed-on: https://gerrit.libreoffice.org/44365Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 170ff1fb
......@@ -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*/ );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment