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

Mesut Çifci (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 14 14:13:54 UTC 2020


 svx/source/items/numfmtsh.cxx |    2 +-
 svx/source/svdraw/svdpage.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 18b03440b4dca084274a02d16a8a1545d629a4c1
Author:     Mesut Çifci <mesutcifci97 at gmail.com>
AuthorDate: Mon Jan 13 23:46:45 2020 +0300
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Tue Jan 14 15:13:24 2020 +0100

    tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types
    
    Change-Id: I583e5758b999e2800e1372af3a6490b3b64fe96e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86717
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx
index 8f39c009351f..f950eb0afd86 100644
--- a/svx/source/items/numfmtsh.cxx
+++ b/svx/source/items/numfmtsh.cxx
@@ -375,7 +375,7 @@ void SvxNumberFormatShell::MakePreviewString(const OUString& rFormatStr, OUStrin
 {
     rpFontColor = nullptr;
 
-    sal_uIntPtr nExistingFormat = pFormatter->GetEntryKey(rFormatStr, eCurLanguage);
+    sal_uInt32 nExistingFormat = pFormatter->GetEntryKey(rFormatStr, eCurLanguage);
     if (nExistingFormat == NUMBERFORMAT_ENTRY_NOT_FOUND)
     {
         //  real preview - not implemented in NumberFormatter for text formats
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index c93d70627f3a..8012cf7258d2 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -212,7 +212,7 @@ void SdrObjList::CopyObjects(const SdrObjList& rSrcList)
                     SdrEdgeObj* pDstEdge=dynamic_cast<SdrEdgeObj*>( pEdgeObjTmp );
                     if (pDstEdge!=nullptr) {
                         if (pSrcNode1!=nullptr) {
-                            sal_uIntPtr nDstNode1=pSrcNode1->GetOrdNum();
+                            sal_uInt32 nDstNode1=pSrcNode1->GetOrdNum();
                             SdrObject* pDstNode1=GetObj(nDstNode1);
                             if (pDstNode1!=nullptr) { // else we get an error!
                                 pDstEdge->ConnectToNode(true,pDstNode1);
@@ -221,7 +221,7 @@ void SdrObjList::CopyObjects(const SdrObjList& rSrcList)
                             }
                         }
                         if (pSrcNode2!=nullptr) {
-                            sal_uIntPtr nDstNode2=pSrcNode2->GetOrdNum();
+                            sal_uInt32 nDstNode2=pSrcNode2->GetOrdNum();
                             SdrObject* pDstNode2=GetObj(nDstNode2);
                             if (pDstNode2!=nullptr) { // else the node was probably not selected
                                 pDstEdge->ConnectToNode(false,pDstNode2);


More information about the Libreoffice-commits mailing list