Update of /cvsroot/libwpg/libwpg/src/lib
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv24678/src/lib
Modified Files:
WPGInternalStream.cpp WPGInternalStream.h
Removed Files:
WPGStreamImplementation.cpp
Log Message:
removing some unnecessary use of uint8_t in favour of unsigned char
Index: WPGInternalStream.cpp
===================================================================
RCS file: /cvsroot/libwpg/libwpg/src/lib/WPGInternalStream.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- WPGInternalStream.cpp 8 Oct 2007 20:47:26 -0000 1.4
+++ WPGInternalStream.cpp 19 Oct 2007 13:12:49 -0000 1.5
@@ -40,7 +40,7 @@
delete [] m_tmpBuf;
}
-const uint8_t * WPGInternalInputStream::read(size_t numBytes, size_t &numBytesRead)
+const unsigned char * WPGInternalInputStream::read(size_t numBytes, size_t &numBytesRead)
{
numBytesRead = 0;
@@ -63,7 +63,7 @@
if (numBytesToRead == 0)
return 0;
- m_tmpBuf = new uint8_t[numBytesToRead];
+ m_tmpBuf = new unsigned char[numBytesToRead];
for (size_t i=0; (long)i<(long)numBytesToRead; i++)
{
m_tmpBuf[i] = m_data[m_offset];
--- WPGStreamImplementation.cpp DELETED ---
Index: WPGInternalStream.h
===================================================================
RCS file: /cvsroot/libwpg/libwpg/src/lib/WPGInternalStream.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- WPGInternalStream.h 8 Oct 2007 20:47:26 -0000 1.2
+++ WPGInternalStream.h 19 Oct 2007 13:12:53 -0000 1.3
@@ -35,7 +35,7 @@
virtual bool isOLEStream() { return false; }
virtual WPXInputStream * getDocumentOLEStream(const char* /*name*/) { return 0; }
- const virtual uint8_t *read(size_t numBytes, size_t &numBytesRead);
+ const virtual unsigned char *read(size_t numBytes, size_t &numBytesRead);
virtual int seek(long offset, WPX_SEEK_TYPE seekType);
virtual long tell();
virtual bool atEOS();
|