[Libreoffice-commits] core.git: svx/source

Pelin Kuran (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 27 10:31:31 UTC 2020


 svx/source/svdraw/svdotxat.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dd98cb655f243024260dd45c44b751e564c1c67e
Author:     Pelin Kuran <pelinrkuran at gmail.com>
AuthorDate: Sun Jan 26 20:09:16 2020 +0300
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jan 27 11:30:56 2020 +0100

    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 at redhat.com>

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()) {


More information about the Libreoffice-commits mailing list