summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/hsqldb/HTable.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:19:05 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-22 23:21:18 +0200
commitb09b5f8f7cfd2d7f3125dab93ebe996c160e1e0c (patch)
treedacb87512726af1941d0c6b072d0b3626335cc4c /connectivity/source/drivers/hsqldb/HTable.cxx
parent87c1aa16a95dcff9247ae12a4bb5ea2d866b1772 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part19
Change-Id: Iab50c52a132c90389992ef68c2d31df95a193ab9
Diffstat (limited to 'connectivity/source/drivers/hsqldb/HTable.cxx')
-rw-r--r--connectivity/source/drivers/hsqldb/HTable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/hsqldb/HTable.cxx b/connectivity/source/drivers/hsqldb/HTable.cxx
index 6ee8f5bf77a4..4e7b9654a84d 100644
--- a/connectivity/source/drivers/hsqldb/HTable.cxx
+++ b/connectivity/source/drivers/hsqldb/HTable.cxx
@@ -351,7 +351,7 @@ Sequence< Type > SAL_CALL OHSQLTable::getTypes( ) throw(RuntimeException, std::
const Type* pEnd = pIter + aTypes.getLength();
for(;pIter != pEnd;++pIter)
{
- if( *pIter != ::getCppuType((const Reference<XRename>*)0) )
+ if( *pIter != cppu::UnoType<XRename>::get())
{
aOwnTypes.push_back(*pIter);
}
@@ -401,7 +401,7 @@ void SAL_CALL OHSQLTable::rename( const OUString& newName ) throw(SQLException,
Any SAL_CALL OHSQLTable::queryInterface( const Type & rType ) throw(RuntimeException, std::exception)
{
- if( m_Type.equalsAscii("VIEW") && rType == ::getCppuType((const Reference<XRename>*)0) )
+ if( m_Type.equalsAscii("VIEW") && rType == cppu::UnoType<XRename>::get())
return Any();
return OTableHelper::queryInterface(rType);