summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2015-07-24 23:50:45 +0800
committerMatthew Francis <mjay.francis@gmail.com>2015-07-25 02:17:28 +0000
commit3458a252022af241f364a9d49c458180442ebd07 (patch)
tree7ef98052dc123549110e4c35a8e67c4add90488c /pyuno
parentfe88fe6f828597fe2645a20c1a07716216a810c3 (diff)
Fix PyUNO object hash to use the correct pointer
Change-Id: Id93cba88eaf0dca0784051507809bc849d046a03 Reviewed-on: https://gerrit.libreoffice.org/17337 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Matthew Francis <mjay.francis@gmail.com>
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyuno/source/module/pyuno.cxx b/pyuno/source/module/pyuno.cxx
index 20e2f9fceb14..f068961fb9aa 100644
--- a/pyuno/source/module/pyuno.cxx
+++ b/pyuno/source/module/pyuno.cxx
@@ -411,12 +411,12 @@ Py_hash_t PyUNO_hash( PyObject *self )
{
Reference< XMaterialHolder > xMe( me->members->xInvocation, UNO_QUERY );
return sal::static_int_cast< Py_hash_t >( reinterpret_cast< sal_IntPtr > (
- xMe->getMaterial().getValue() ) );
+ *static_cast<void * const *>(xMe->getMaterial().getValue()) ) );
}
else
{
return sal::static_int_cast< Py_hash_t >( reinterpret_cast< sal_IntPtr > (
- me->members->wrappedObject.getValue() ) );
+ *static_cast<void * const *>(me->members->wrappedObject.getValue()) ) );
}
}