src/lib/CDRInternalStream.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit d66580805e97af0eb21907034f23033b99f4990b Author: Fridrich Å trba <[email protected]> Date: Wed Jul 31 21:52:26 2013 +0200 Really reduce the scope of have :) diff --git a/src/lib/CDRInternalStream.cpp b/src/lib/CDRInternalStream.cpp index 83ae298..c602270 100644 --- a/src/lib/CDRInternalStream.cpp +++ b/src/lib/CDRInternalStream.cpp @@ -87,7 +87,6 @@ libcdr::CDRInternalStream::CDRInternalStream(WPXInputStream *input, unsigned lon strm.avail_in = (uInt)tmpNumBytesRead; strm.next_in = (Bytef *)tmpBuffer; - unsigned have; do { @@ -104,7 +103,7 @@ libcdr::CDRInternalStream::CDRInternalStream(WPXInputStream *input, unsigned lon return; } - have = CHUNK - strm.avail_out; + unsigned have = CHUNK - strm.avail_out; for (unsigned long i=0; i<have; i++) m_buffer.push_back(out[i]);
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
