diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-05-14 23:17:17 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-05-14 23:18:57 +0200 |
commit | c288b17cc5a1d5051325e02a29aa40df5be6f016 (patch) | |
tree | a18b17b49cd5917c456fc2e0c1697fdbbb273195 /extensions | |
parent | 67f85d7419a475c1e10b6b1d829bb0c575a39fbf (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/standardcontrol.cxx | 6 | ||||
-rw-r--r-- | extensions/source/resource/ResourceIndexAccess.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index 894b505836f3..b29a2c5402b8 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -106,7 +106,7 @@ namespace pcr Type SAL_CALL OTimeControl::getValueType() throw (RuntimeException, std::exception) { - return ::getCppuType( static_cast< util::Time* >( NULL ) ); + return ::cppu::UnoType<util::Time>::get(); } @@ -160,7 +160,7 @@ namespace pcr Type SAL_CALL ODateControl::getValueType() throw (RuntimeException, std::exception) { - return ::getCppuType( static_cast< util::Date* >( NULL ) ); + return ::cppu::UnoType<util::Date>::get(); } @@ -319,7 +319,7 @@ namespace pcr Type SAL_CALL ODateTimeControl::getValueType() throw (RuntimeException, std::exception) { - return ::getCppuType( static_cast< util::DateTime* >( NULL ) ); + return ::cppu::UnoType<util::DateTime>::get(); } diff --git a/extensions/source/resource/ResourceIndexAccess.hxx b/extensions/source/resource/ResourceIndexAccess.hxx index c6bb6c6b1aad..9a837cb0d1c1 100644 --- a/extensions/source/resource/ResourceIndexAccess.hxx +++ b/extensions/source/resource/ResourceIndexAccess.hxx @@ -40,7 +40,7 @@ namespace extensions { namespace resource virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; // XElementAccess virtual ::com::sun::star::uno::Type SAL_CALL getElementType( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE - { return ::getCppuType(static_cast< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>*>(0)); }; + { return cppu::UnoType<com::sun::star::uno::XInterface>::get(); }; virtual sal_Bool SAL_CALL hasElements( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE { return static_cast<bool>(m_pResMgr.get()); }; |