Kaydet (Commit) e73505fe authored tarafından dilekuzulmez's avatar dilekuzulmez Kaydeden (comit) Michael Stahl

tdf#96505 Get rid of cargo cult long integer literals

Change-Id: I6bda2915547980b33d059257c8dbd65f181f9f16
Reviewed-on: https://gerrit.libreoffice.org/35291Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst ac655f20
...@@ -297,7 +297,7 @@ bool StgCache::Open( const OUString& rName, StreamMode nMode ) ...@@ -297,7 +297,7 @@ bool StgCache::Open( const OUString& rName, StreamMode nMode )
{ {
sal_uLong nFileSize = m_pStrm->Seek( STREAM_SEEK_TO_END ); sal_uLong nFileSize = m_pStrm->Seek( STREAM_SEEK_TO_END );
m_nPages = lcl_GetPageCount( nFileSize, m_nPageSize ); m_nPages = lcl_GetPageCount( nFileSize, m_nPageSize );
m_pStrm->Seek( 0L ); m_pStrm->Seek( 0 );
} }
else else
m_nPages = 0; m_nPages = 0;
...@@ -335,7 +335,7 @@ bool StgCache::Read( sal_Int32 nPage, void* pBuf ) ...@@ -335,7 +335,7 @@ bool StgCache::Read( sal_Int32 nPage, void* pBuf )
// fixed address and size for the header // fixed address and size for the header
if( nPage == -1 ) if( nPage == -1 )
{ {
nPos = 0L; nPos = 0;
nBytes = 512; nBytes = 512;
nPg2 = 1; nPg2 = 1;
} }
...@@ -364,7 +364,7 @@ bool StgCache::Write( sal_Int32 nPage, void* pBuf ) ...@@ -364,7 +364,7 @@ bool StgCache::Write( sal_Int32 nPage, void* pBuf )
// nPageSize must be >= 512, otherwise the header can not be written here, we check it on import // nPageSize must be >= 512, otherwise the header can not be written here, we check it on import
if( nPage == -1 ) if( nPage == -1 )
{ {
nPos = 0L; nPos = 0;
nBytes = 512; nBytes = 512;
} }
if( m_pStrm->Tell() != nPos ) if( m_pStrm->Tell() != nPos )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment