filter/source/msfilter/svdfppt.cxx | 2 +- onlineupdate/source/update/updater/progressui_win.cxx | 2 +- sd/source/ui/func/fumorph.cxx | 4 ++-- svl/source/svdde/ddesvr.cxx | 2 +- xmloff/source/core/namespacemap.cxx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 561e5559bb68242c7f785f0ca3bee3eb12b58963 Author: Gökhan Özeloğlu <gozelo...@gmail.com> AuthorDate: Sun Nov 29 19:09:21 2020 +0000 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Dec 3 23:35:48 2020 +0100 tdf#96505: Get rid of cargo cult long integer literals Change-Id: I7226f93a87e0b31634a3c0942f3f5ec8778161fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106843 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 09e69e9fcb6a..f877bbc99e09 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -1793,7 +1793,7 @@ static bool SdrPowerPointOLEDecompress( SvStream& rOutput, SvStream& rInput, sal aZCodec.BeginCompression(); SvMemoryStream aSource( pBuf.get(), nInputSize, StreamMode::READ ); aZCodec.Decompress( aSource, rOutput ); - const bool bSuccess(0L != aZCodec.EndCompression()); + const bool bSuccess(0 != aZCodec.EndCompression()); rInput.Seek( nOldPos ); return bSuccess; } diff --git a/onlineupdate/source/update/updater/progressui_win.cxx b/onlineupdate/source/update/updater/progressui_win.cxx index 0b8017823486..7ef23cfabfdf 100644 --- a/onlineupdate/source/update/updater/progressui_win.cxx +++ b/onlineupdate/source/update/updater/progressui_win.cxx @@ -67,7 +67,7 @@ UpdateDialog(HWND hDlg) { int pos = int(sProgress + 0.5f); HWND hWndPro = GetDlgItem(hDlg, IDC_PROGRESS); - SendMessage(hWndPro, PBM_SETPOS, pos, 0L); + SendMessage(hWndPro, PBM_SETPOS, pos, 0); } // The code in this function is from MSDN: diff --git a/sd/source/ui/func/fumorph.cxx b/sd/source/ui/func/fumorph.cxx index 9755b7ae3a20..842cd001b85e 100644 --- a/sd/source/ui/func/fumorph.cxx +++ b/sd/source/ui/func/fumorph.cxx @@ -188,7 +188,7 @@ static ::basegfx::B2DPolygon ImpGetExpandedPolygon( double fDestPos(0.0); double fSrcPos(0.0); sal_uInt32 nSrcPos(0); - sal_uInt32 nSrcPosNext((nSrcPos + 1 == rCandidate.count()) ? 0L : nSrcPos + 1); + sal_uInt32 nSrcPosNext((nSrcPos + 1 == rCandidate.count()) ? 0 : nSrcPos + 1); double fNextSrcLen(::basegfx::B2DVector(rCandidate.getB2DPoint(nSrcPos) - rCandidate.getB2DPoint(nSrcPosNext)).getLength()); for(sal_uInt32 b(0); b < nNum; b++) @@ -198,7 +198,7 @@ static ::basegfx::B2DPolygon ImpGetExpandedPolygon( { fSrcPos += fNextSrcLen; nSrcPos++; - nSrcPosNext = (nSrcPos + 1 == rCandidate.count()) ? 0L : nSrcPos + 1; + nSrcPosNext = (nSrcPos + 1 == rCandidate.count()) ? 0 : nSrcPos + 1; fNextSrcLen = ::basegfx::B2DVector(rCandidate.getB2DPoint(nSrcPos) - rCandidate.getB2DPoint(nSrcPosNext)).getLength(); } diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx index fe0e5c59f41b..4893fdb53e61 100644 --- a/svl/source/svdde/ddesvr.cxx +++ b/svl/source/svdde/ddesvr.cxx @@ -402,7 +402,7 @@ DdeService::DdeService( const OUString& rService ) DdeInternal::SvrCallback, APPCLASS_STANDARD | CBF_SKIP_REGISTRATIONS | - CBF_SKIP_UNREGISTRATIONS, 0L ) ); + CBF_SKIP_UNREGISTRATIONS, 0 ) ); pInst->pServicesSvr = new DdeServices; } else diff --git a/xmloff/source/core/namespacemap.cxx b/xmloff/source/core/namespacemap.cxx index 1fd9f9d70cbb..2a0ca441d05a 100644 --- a/xmloff/source/core/namespacemap.cxx +++ b/xmloff/source/core/namespacemap.cxx @@ -312,7 +312,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByQName(const OUString& rQName, else { // normal case: ':' found -> get prefix/suffix - sEntryPrefix = rQName.copy( 0L, nColonPos ); + sEntryPrefix = rQName.copy( 0, nColonPos ); sEntryName = rQName.copy( nColonPos + 1 ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits