diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-06-29 15:52:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-06-29 17:54:55 +0200 |
commit | eab8e4b94317992aafed561a869adc33ceeb1059 (patch) | |
tree | 9c0b677d87e23ba61f3da5a3ca31f046aeb73b16 /filter | |
parent | sw: fix crash on F2 while drawing a polygon (diff) | |
download | core-eab8e4b94317992aafed561a869adc33ceeb1059.tar.gz core-eab8e4b94317992aafed561a869adc33ceeb1059.zip |
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@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/rtfutil.cxx | 2 | ||||
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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; |