writerperfect/source/common/WPXSvStream.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit c85456b01bd8dd12792b76fb393f893496461c5c Author: Fridrich Å trba <fridrich.st...@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()
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits