From e73505fe0fb44075b462a20a3b2091063db5e1b3 Mon Sep 17 00:00:00 2001 From: dilekuzulmez Date: Thu, 16 Mar 2017 23:38:59 +0300 Subject: tdf#96505 Get rid of cargo cult long integer literals Change-Id: I6bda2915547980b33d059257c8dbd65f181f9f16 Reviewed-on: https://gerrit.libreoffice.org/35291 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sot/source/sdstor/stgcache.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index 409e4729a874..57632bcc128c 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -297,7 +297,7 @@ bool StgCache::Open( const OUString& rName, StreamMode nMode ) { sal_uLong nFileSize = m_pStrm->Seek( STREAM_SEEK_TO_END ); m_nPages = lcl_GetPageCount( nFileSize, m_nPageSize ); - m_pStrm->Seek( 0L ); + m_pStrm->Seek( 0 ); } else m_nPages = 0; @@ -335,7 +335,7 @@ bool StgCache::Read( sal_Int32 nPage, void* pBuf ) // fixed address and size for the header if( nPage == -1 ) { - nPos = 0L; + nPos = 0; nBytes = 512; nPg2 = 1; } @@ -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 if( nPage == -1 ) { - nPos = 0L; + nPos = 0; nBytes = 512; } if( m_pStrm->Tell() != nPos ) -- cgit