[Libreoffice-commits] libcdr.git: src/lib
Fridrich Å trba
fridrich.strba at bluewin.ch
Wed Jul 31 12:53:42 PDT 2013
src/lib/CDRInternalStream.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit d66580805e97af0eb21907034f23033b99f4990b
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
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]);
More information about the Libreoffice-commits
mailing list