summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/dataaccess/ModelImpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/core/dataaccess/ModelImpl.cxx')
-rw-r--r--dbaccess/source/core/dataaccess/ModelImpl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx
index 87e62ca36343..07331079b3ab 100644
--- a/dbaccess/source/core/dataaccess/ModelImpl.cxx
+++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx
@@ -465,11 +465,11 @@ void ODatabaseModelImpl::impl_construct_nothrow()
// the set of property value types in the bag is limited:
Sequence< Type > aAllowedTypes(6);
Type* pAllowedType = aAllowedTypes.getArray();
- *pAllowedType++ = ::getCppuType( static_cast< sal_Bool* >( NULL ) );
- *pAllowedType++ = ::getCppuType( static_cast< double* >( NULL ) );
- *pAllowedType++ = ::getCppuType( static_cast< OUString* >( NULL ) );
- *pAllowedType++ = ::getCppuType( static_cast< sal_Int32* >( NULL ) );
- *pAllowedType++ = ::getCppuType( static_cast< sal_Int16* >( NULL ) );
+ *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++ = ::getCppuType( static_cast< Sequence< Any >* >( NULL ) );
m_xSettings = PropertyBag::createWithTypes( m_aContext, aAllowedTypes, sal_False/*AllowEmptyPropertyName*/, sal_True/*AutomaticAddition*/ );