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 /connectivity | |
parent | 67f85d7419a475c1e10b6b1d829bb0c575a39fbf (diff) |
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part12
Change-Id: I7c514b7a1d86f52d77672b826b1f08b825fd7aa7
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/dbexception.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx index 77abf1e241fa..3b68dde5b8c8 100644 --- a/connectivity/source/commontools/dbexception.cxx +++ b/connectivity/source/commontools/dbexception.cxx @@ -128,7 +128,7 @@ const SQLExceptionInfo& SQLExceptionInfo::operator=(const ::com::sun::star::uno: SQLExceptionInfo::SQLExceptionInfo(const staruno::Any& _rError) { - const staruno::Type& aSQLExceptionType = ::getCppuType(static_cast< ::com::sun::star::sdbc::SQLException*>(0)); + const staruno::Type& aSQLExceptionType = cppu::UnoType<com::sun::star::sdbc::SQLException>::get(); bool bValid = isAssignableFrom(aSQLExceptionType, _rError.getValueType()); if (bValid) m_aContent = _rError; |