summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@libreoffice.org>2022-09-27 16:29:23 +0200
committerEike Rathke <erack@redhat.com>2022-10-03 17:49:26 +0200
commit4ab8efd367dc09203a77983e5dcd3d6e9bfa7ddd (patch)
tree0f8b39dbaa338f285b1433c14eee0a1d708a96dd /svl
parent07aa8138db9bbaf222f2b7cea12a9f7d0a8192d7 (diff)
svl : use uintptr_t instead of sal_uInt32 or sal_uInt64
Change-Id: I57a860ee67cc986936b1488f4ab59b5c47f2fd15 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140657 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/notify/broadcast.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/svl/source/notify/broadcast.cxx b/svl/source/notify/broadcast.cxx
index 042d1dacaae3..c13cfa3b736e 100644
--- a/svl/source/notify/broadcast.cxx
+++ b/svl/source/notify/broadcast.cxx
@@ -49,20 +49,12 @@ static bool isDeletedPtr(SvtListener* p)
/** mark deleted entries by toggling the last bit,which is effectively unused, since the struct we point
* to is at least 16-bit aligned. This allows the binary search to continue working even when we have
* deleted entries */
-#if SAL_TYPES_SIZEOFPOINTER == 4
- return (reinterpret_cast<sal_uInt32>(p) & 0x01) == 0x01;
-#else
- return (reinterpret_cast<sal_uInt64>(p) & 0x01) == 0x01;
-#endif
+ return (reinterpret_cast<uintptr_t>(p) & 0x01) == 0x01;
}
static void markDeletedPtr(SvtListener*& rp)
{
-#if SAL_TYPES_SIZEOFPOINTER == 4
- reinterpret_cast<sal_uInt32&>(rp) |= 0x01;
-#else
- reinterpret_cast<sal_uInt64&>(rp) |= 0x01;
-#endif
+ reinterpret_cast<uintptr_t&>(rp) |= 0x01;
}
static void sortListeners(std::vector<SvtListener*>& listeners, size_t firstUnsorted)