summaryrefslogtreecommitdiff
path: root/connectivity/source/sdbcx/VDescriptor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/sdbcx/VDescriptor.cxx')
-rw-r--r--connectivity/source/sdbcx/VDescriptor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/sdbcx/VDescriptor.cxx b/connectivity/source/sdbcx/VDescriptor.cxx
index cde97530a186..7b56d400c878 100644
--- a/connectivity/source/sdbcx/VDescriptor.cxx
+++ b/connectivity/source/sdbcx/VDescriptor.cxx
@@ -49,7 +49,7 @@ namespace connectivity
// css::lang::XUnoTunnel
sal_Int64 SAL_CALL ODescriptor::getSomething( const Sequence< sal_Int8 >& rId )
{
- return (rId.getLength() == 16 && 0 == memcmp(getUnoTunnelId().getConstArray(), rId.getConstArray(), 16 ) )
+ return (isUnoTunnelId<ODescriptor>(rId))
? reinterpret_cast< sal_Int64 >( this )
: 0;
}