Kaydet (Commit) 3458a252 authored tarafından Matthew J. Francis's avatar Matthew J. Francis Kaydeden (comit) Matthew Francis

Fix PyUNO object hash to use the correct pointer

Change-Id: Id93cba88eaf0dca0784051507809bc849d046a03
Reviewed-on: https://gerrit.libreoffice.org/17337Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMatthew Francis <mjay.francis@gmail.com>
üst fe88fe6f
...@@ -411,12 +411,12 @@ Py_hash_t PyUNO_hash( PyObject *self ) ...@@ -411,12 +411,12 @@ Py_hash_t PyUNO_hash( PyObject *self )
{ {
Reference< XMaterialHolder > xMe( me->members->xInvocation, UNO_QUERY ); Reference< XMaterialHolder > xMe( me->members->xInvocation, UNO_QUERY );
return sal::static_int_cast< Py_hash_t >( reinterpret_cast< sal_IntPtr > ( return sal::static_int_cast< Py_hash_t >( reinterpret_cast< sal_IntPtr > (
xMe->getMaterial().getValue() ) ); *static_cast<void * const *>(xMe->getMaterial().getValue()) ) );
} }
else else
{ {
return sal::static_int_cast< Py_hash_t >( reinterpret_cast< sal_IntPtr > ( return sal::static_int_cast< Py_hash_t >( reinterpret_cast< sal_IntPtr > (
me->members->wrappedObject.getValue() ) ); *static_cast<void * const *>(me->members->wrappedObject.getValue()) ) );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment