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:
committed by
Tor Lillqvist
parent
f0878173e1
commit
561e5559bb
@@ -1793,7 +1793,7 @@ static bool SdrPowerPointOLEDecompress( SvStream& rOutput, SvStream& rInput, sal
|
|||||||
aZCodec.BeginCompression();
|
aZCodec.BeginCompression();
|
||||||
SvMemoryStream aSource( pBuf.get(), nInputSize, StreamMode::READ );
|
SvMemoryStream aSource( pBuf.get(), nInputSize, StreamMode::READ );
|
||||||
aZCodec.Decompress( aSource, rOutput );
|
aZCodec.Decompress( aSource, rOutput );
|
||||||
const bool bSuccess(0L != aZCodec.EndCompression());
|
const bool bSuccess(0 != aZCodec.EndCompression());
|
||||||
rInput.Seek( nOldPos );
|
rInput.Seek( nOldPos );
|
||||||
return bSuccess;
|
return bSuccess;
|
||||||
}
|
}
|
||||||
|
@@ -67,7 +67,7 @@ UpdateDialog(HWND hDlg)
|
|||||||
{
|
{
|
||||||
int pos = int(sProgress + 0.5f);
|
int pos = int(sProgress + 0.5f);
|
||||||
HWND hWndPro = GetDlgItem(hDlg, IDC_PROGRESS);
|
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:
|
// The code in this function is from MSDN:
|
||||||
|
@@ -188,7 +188,7 @@ static ::basegfx::B2DPolygon ImpGetExpandedPolygon(
|
|||||||
double fDestPos(0.0);
|
double fDestPos(0.0);
|
||||||
double fSrcPos(0.0);
|
double fSrcPos(0.0);
|
||||||
sal_uInt32 nSrcPos(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());
|
double fNextSrcLen(::basegfx::B2DVector(rCandidate.getB2DPoint(nSrcPos) - rCandidate.getB2DPoint(nSrcPosNext)).getLength());
|
||||||
|
|
||||||
for(sal_uInt32 b(0); b < nNum; b++)
|
for(sal_uInt32 b(0); b < nNum; b++)
|
||||||
@@ -198,7 +198,7 @@ static ::basegfx::B2DPolygon ImpGetExpandedPolygon(
|
|||||||
{
|
{
|
||||||
fSrcPos += fNextSrcLen;
|
fSrcPos += fNextSrcLen;
|
||||||
nSrcPos++;
|
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();
|
fNextSrcLen = ::basegfx::B2DVector(rCandidate.getB2DPoint(nSrcPos) - rCandidate.getB2DPoint(nSrcPosNext)).getLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -402,7 +402,7 @@ DdeService::DdeService( const OUString& rService )
|
|||||||
DdeInternal::SvrCallback,
|
DdeInternal::SvrCallback,
|
||||||
APPCLASS_STANDARD |
|
APPCLASS_STANDARD |
|
||||||
CBF_SKIP_REGISTRATIONS |
|
CBF_SKIP_REGISTRATIONS |
|
||||||
CBF_SKIP_UNREGISTRATIONS, 0L ) );
|
CBF_SKIP_UNREGISTRATIONS, 0 ) );
|
||||||
pInst->pServicesSvr = new DdeServices;
|
pInst->pServicesSvr = new DdeServices;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -312,7 +312,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByQName(const OUString& rQName,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// normal case: ':' found -> get prefix/suffix
|
// normal case: ':' found -> get prefix/suffix
|
||||||
sEntryPrefix = rQName.copy( 0L, nColonPos );
|
sEntryPrefix = rQName.copy( 0, nColonPos );
|
||||||
sEntryName = rQName.copy( nColonPos + 1 );
|
sEntryName = rQName.copy( nColonPos + 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user