Kaydet (Commit) 6547c930 authored tarafından László Németh's avatar László Németh

tdf#89319 SvFileStream: remove redundant osl_getFilePos() calls

on unx platform

Change-Id: Ibdcb7017718154b11ab6dcfc4124beab5efd7b56
üst 4bf97ace
...@@ -373,6 +373,8 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos) ...@@ -373,6 +373,8 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos)
SetError( SVSTREAM_SEEK_ERROR ); SetError( SVSTREAM_SEEK_ERROR );
return 0L; return 0L;
} }
if ( nPos != STREAM_SEEK_TO_END )
return nPos;
rc = osl_getFilePos( pInstanceData->rHandle, &nNewPos ); rc = osl_getFilePos( pInstanceData->rHandle, &nNewPos );
return (sal_Size) nNewPos; return (sal_Size) nNewPos;
} }
......
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