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

Fridrich Å trba fridrich.strba at bluewin.ch
Fri Dec 20 07:37:40 PST 2013


 writerperfect/source/common/WPXSvStream.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit c85456b01bd8dd12792b76fb393f893496461c5c
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Fri Dec 20 16:36:53 2013 +0100

    Simplify this condition a bit
    
    Change-Id: Iceef995be9ff55306550e56a0be87dddab7a78c3

diff --git a/writerperfect/source/common/WPXSvStream.cxx b/writerperfect/source/common/WPXSvStream.cxx
index c803632..3b33a17 100644
--- a/writerperfect/source/common/WPXSvStream.cxx
+++ b/writerperfect/source/common/WPXSvStream.cxx
@@ -365,10 +365,9 @@ int WPXSvInputStream::seek(long offset, WPX_SEEK_TYPE seekType)
 
     mpImpl->invalidateReadBuffer();
 
-    int retVal2 = mpImpl->seek(tmpOffset);
-    if (retVal)
-        return retVal;
-    return retVal2;
+    if (mpImpl->seek(tmpOffset))
+        return -1;
+    return retVal;
 }
 
 bool WPXSvInputStream::atEOS()


More information about the Libreoffice-commits mailing list