diff options
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/browser/formadapter.cxx | 3 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/dbaccess/source/ui/browser/formadapter.cxx b/dbaccess/source/ui/browser/formadapter.cxx index 53f0b282703f..bac906e81cc8 100644 --- a/dbaccess/source/ui/browser/formadapter.cxx +++ b/dbaccess/source/ui/browser/formadapter.cxx @@ -1491,8 +1491,7 @@ sal_Bool SAL_CALL SbaXFormAdapter::hasByName(const OUString& aName) throw( Runti // ::com::sun::star::container::XElementAccess Type SAL_CALL SbaXFormAdapter::getElementType() throw(RuntimeException, std::exception) { - return ::getCppuType( - static_cast< Reference< ::com::sun::star::form::XFormComponent >* >(NULL)); + return cppu::UnoType<com::sun::star::form::XFormComponent>::get(); } sal_Bool SAL_CALL SbaXFormAdapter::hasElements() throw(RuntimeException, std::exception) diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 1fd968578621..2d7d9c1804c2 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -181,7 +181,7 @@ Sequence< Type > SAL_CALL SbaXGridControl::getTypes( ) throw (RuntimeException, sal_Int32 nTypes = aTypes.getLength(); aTypes.realloc(nTypes + 1); - aTypes[nTypes] = ::getCppuType(static_cast< Reference< ::com::sun::star::frame::XDispatch >* >(NULL)); + aTypes[nTypes] = cppu::UnoType<com::sun::star::frame::XDispatch>::get(); return aTypes; } @@ -526,7 +526,7 @@ Sequence< Type > SAL_CALL SbaXGridPeer::getTypes() throw (RuntimeException, std: Sequence< Type > aTypes = FmXGridPeer::getTypes(); sal_Int32 nOldLen = aTypes.getLength(); aTypes.realloc(nOldLen + 1); - aTypes.getArray()[nOldLen] = ::getCppuType( static_cast< Reference< ::com::sun::star::frame::XDispatch >* >(0) ); + aTypes.getArray()[nOldLen] = cppu::UnoType<com::sun::star::frame::XDispatch>::get(); return aTypes; } |