From bdb66b740681e9d3a94fbd0226ae1a4f1663e589 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Feb 2022 11:56:52 +0200 Subject: fix SfxItemPool::GetWhich change In commit 339fde9d905135e24b2f4e204009ee289d678b0c Author: Noel Grandin Date: Tue Feb 15 08:56:13 2022 +0200 add typed GetWhich operations I got the parameter type wrong Change-Id: I7b1d86bc06da7feb3238f5033bbffbd166cd4fdd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129959 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svl/itempool.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/svl/itempool.hxx') diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index ba07c6befc51..e85451ecb738 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -185,7 +185,7 @@ public: void SetItemInfos( const SfxItemInfo *pInfos ); sal_uInt16 GetWhich( sal_uInt16 nSlot, bool bDeep = true ) const; template - TypedWhichId GetWhich( sal_uInt16 nSlot, bool bDeep = true ) const + TypedWhichId GetWhich( TypedWhichId nSlot, bool bDeep = true ) const { return TypedWhichId(GetWhich(sal_uInt16(nSlot), bDeep)); } sal_uInt16 GetSlotId( sal_uInt16 nWhich ) const; sal_uInt16 GetTrueWhich( sal_uInt16 nSlot, bool bDeep = true ) const; -- cgit