summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-02-12 15:38:38 +0100
committerLászló Németh <laszlo.nemeth@collabora.com>2015-02-12 15:38:38 +0100
commit6547c93056cfa8cf60c0bb48d7eb50f81a560773 (patch)
tree6aed14ab6df271c233fc09eab381af0dcf1ffe22 /tools/source
parent4bf97acefcf88c1e5a7d7722d72a5b0d7995ee3d (diff)
tdf#89319 SvFileStream: remove redundant osl_getFilePos() calls
on unx platform Change-Id: Ibdcb7017718154b11ab6dcfc4124beab5efd7b56
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/stream/strmunx.cxx2
1 files changed, 2 insertions, 0 deletions
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;
}