From 6547c93056cfa8cf60c0bb48d7eb50f81a560773 Mon Sep 17 00:00:00 2001 From: László Németh Date: Thu, 12 Feb 2015 15:38:38 +0100 Subject: tdf#89319 SvFileStream: remove redundant osl_getFilePos() calls on unx platform Change-Id: Ibdcb7017718154b11ab6dcfc4124beab5efd7b56 --- tools/source/stream/strmunx.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index 20b8febe19b6..c7610b440cca 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -373,6 +373,8 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos) SetError( SVSTREAM_SEEK_ERROR ); return 0L; } + if ( nPos != STREAM_SEEK_TO_END ) + return nPos; rc = osl_getFilePos( pInstanceData->rHandle, &nNewPos ); return (sal_Size) nNewPos; } -- cgit