summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPelin Kuran <pelinrkuran@gmail.com>2020-01-26 20:09:16 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-01-27 11:30:56 +0100
commitdd98cb655f243024260dd45c44b751e564c1c67e (patch)
tree527405c662af0d94798857b12f38b76fe96b6cda
parented41cf71d09878766f7883e64efccc1dbaed13eb (diff)
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 <sbergman@redhat.com>
-rw-r--r--svx/source/svdraw/svdotxat.cxx4
1 files 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<sal_uInt16>(nNum));
+ SfxBroadcaster* pBroadcast=GetBroadcasterJOE(nNum);
SfxStyleSheet* pStyle=dynamic_cast<SfxStyleSheet*>( pBroadcast );
if (pStyle!=nullptr && pStyle!=GetStyleSheet()) { // special case for stylesheet of the object
if (aStyleSheets.find(pStyle)==aStyleSheets.end()) {