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

Stephan Bergmann sbergman at redhat.com
Fri Jun 29 15:55:22 UTC 2018


 filter/source/msfilter/rtfutil.cxx |    2 +-
 filter/source/msfilter/svdfppt.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit eab8e4b94317992aafed561a869adc33ceeb1059
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jun 29 15:52:24 2018 +0200

    Improved loplugin:redundantcast (const-qualified typedefs): filter
    
    Change-Id: I200be1277904d346dd02e64612e6f1bed24f17a3
    Reviewed-on: https://gerrit.libreoffice.org/56695
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/filter/source/msfilter/rtfutil.cxx b/filter/source/msfilter/rtfutil.cxx
index 2d709f10060e..ad2031d5536f 100644
--- a/filter/source/msfilter/rtfutil.cxx
+++ b/filter/source/msfilter/rtfutil.cxx
@@ -104,7 +104,7 @@ OString OutChar(sal_Unicode c, int* pUCMode, rtl_TextEncoding eDestEnc, bool* pS
                     if (*pUCMode != nLen)
                     {
                         aBuf.append("\\uc");
-                        aBuf.append(static_cast<sal_Int32>(nLen));
+                        aBuf.append(nLen);
                         // #i47831# add an additional whitespace, so that "document whitespaces" are not ignored.
                         aBuf.append(' ');
                         *pUCMode = nLen;
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 2d263a6e7d16..0f36b690634b 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -2442,7 +2442,7 @@ bool SdrPowerPointImport::SeekToCurrentPage( DffRecordHeader* pRecHd ) const
     PptSlidePersistList* pList = GetPageList( eCurrentPageKind );
     if ( pList && ( nCurrentPageNum < pList->size() ) )
     {
-        sal_uLong nPersist = (*pList)[ static_cast<sal_uInt16>(nCurrentPageNum) ].aPersistAtom.nPsrReference;
+        sal_uLong nPersist = (*pList)[ nCurrentPageNum ].aPersistAtom.nPsrReference;
         if ( nPersist > 0 && nPersist < nPersistPtrCnt )
         {
             sal_uLong nFPos = 0;


More information about the Libreoffice-commits mailing list