From 06b39e3f1b9037a1368f83b7dc948a10cc34c981 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 30 Oct 2020 15:22:46 +0100 Subject: TNumberedItemHash NumberedCollection::m_lComponents is indexed on pointers... ...reinterpret_cast'ed to sal_IntPtr, so consistently use sal_IntPtr throughout here Change-Id: If0085c2ac7e0e2c755ec034766095baa11a1b08c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105071 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- include/comphelper/numberedcollection.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/comphelper') diff --git a/include/comphelper/numberedcollection.hxx b/include/comphelper/numberedcollection.hxx index 9ba619a94eb3..cafe975b59c7 100644 --- a/include/comphelper/numberedcollection.hxx +++ b/include/comphelper/numberedcollection.hxx @@ -28,7 +28,6 @@ #include #include #include -#include #include #include @@ -59,10 +58,10 @@ class COMPHELPER_DLLPUBLIC NumberedCollection final : private ::cppu::BaseMutex }; typedef std::unordered_map< - tools::Long, + sal_IntPtr, TNumberedItem > TNumberedItemHash; - typedef ::std::vector< tools::Long > TDeadItemList; + typedef ::std::vector< sal_IntPtr > TDeadItemList; // interface -- cgit