From dd98cb655f243024260dd45c44b751e564c1c67e Mon Sep 17 00:00:00 2001 From: Pelin Kuran Date: Sun, 26 Jan 2020 20:09:16 +0300 Subject: tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types Change-Id: I760f294c5ef38879a95fe94dce25801108c969ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87459 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- svx/source/svdraw/svdotxat.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svx/source/svdraw/svdotxat.cxx b/svx/source/svdraw/svdotxat.cxx index da810390717a..ad4c9f6965c1 100644 --- a/svx/source/svdraw/svdotxat.cxx +++ b/svx/source/svdraw/svdotxat.cxx @@ -364,10 +364,10 @@ void SdrTextObj::ImpSetTextStyleSheetListeners() } } // now remove all superfluous stylesheets - sal_uIntPtr nNum=GetBroadcasterCount(); + sal_uInt16 nNum=GetBroadcasterCount(); while (nNum>0) { nNum--; - SfxBroadcaster* pBroadcast=GetBroadcasterJOE(static_cast(nNum)); + SfxBroadcaster* pBroadcast=GetBroadcasterJOE(nNum); SfxStyleSheet* pStyle=dynamic_cast( pBroadcast ); if (pStyle!=nullptr && pStyle!=GetStyleSheet()) { // special case for stylesheet of the object if (aStyleSheets.find(pStyle)==aStyleSheets.end()) { -- cgit