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 <tml@collabora.com>
This commit is contained in:
Gökhan Özeloğlu
2020-11-29 19:09:21 +00:00
committed by Tor Lillqvist
parent f0878173e1
commit 561e5559bb
5 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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:

View File

@@ -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();
}

View File

@@ -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

View File

@@ -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 );
}