[Libreoffice-commits] core.git: tools/source

László Németh laszlo.nemeth at collabora.com
Thu Feb 12 06:55:02 PST 2015


 tools/source/stream/strmunx.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6547c93056cfa8cf60c0bb48d7eb50f81a560773
Author: László Németh <laszlo.nemeth at collabora.com>
Date:   Thu Feb 12 15:38:38 2015 +0100

    tdf#89319 SvFileStream: remove redundant osl_getFilePos() calls
    
    on unx platform
    
    Change-Id: Ibdcb7017718154b11ab6dcfc4124beab5efd7b56

diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index 20b8feb..c7610b4 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;
     }


More information about the Libreoffice-commits mailing list