summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-03-17 09:50:28 +0000
committerOliver Bolte <obo@openoffice.org>2004-03-17 09:50:28 +0000
commite8ddda4134a6c724aadcdf3a78c37421127a705d (patch)
tree29cfec403cfb6dd16bab21ff508eff4b2678786d /psprint
parent52d078d88f324bfc0bba0c12354123ffb14404b9 (diff)
INTEGRATION: CWS cups01 (1.14.34); FILE MERGED
2004/02/13 17:05:11 pl 1.14.34.2: RESYNC: (1.14-1.16); FILE MERGED 2003/08/12 10:21:47 pl 1.14.34.1: removed myriads of warnings
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/helper/helper.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/psprint/source/helper/helper.cxx b/psprint/source/helper/helper.cxx
index 7312c3fb43c8..44827f7a3eae 100644
--- a/psprint/source/helper/helper.cxx
+++ b/psprint/source/helper/helper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: helper.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: obo $ $Date: 2004-03-15 12:04:06 $
+ * last change: $Author: obo $ $Date: 2004-03-17 10:50:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -359,8 +359,8 @@ bool psp::convertPfbToPfa( ::osl::File& rInFile, ::osl::File& rOutFile )
{
// read leading bytes
bEof = ! rInFile.read( buffer, 6, nRead ) && nRead == 6 ? false : true;
- int nType = buffer[ 1 ];
- int nBytesToRead = buffer[2] | buffer[3] << 8 | buffer[4] << 16 | buffer[5] << 24;
+ unsigned int nType = buffer[ 1 ];
+ unsigned int nBytesToRead = buffer[2] | buffer[3] << 8 | buffer[4] << 16 | buffer[5] << 24;
if( buffer[0] != 0x80 ) // test for pfb m_agic number
{
// this migt be a pfa font already
@@ -395,8 +395,8 @@ bool psp::convertPfbToPfa( ::osl::File& rInFile, ::osl::File& rOutFile )
// ascii data, convert dos lineends( \r\n ) and
// m_ac lineends( \r ) to \n
unsigned char * pWriteBuffer = new unsigned char[ nBytesToRead ];
- int nBytesToWrite = 0;
- for( int i = 0; i < nBytesToRead; i++ )
+ unsigned int nBytesToWrite = 0;
+ for( unsigned int i = 0; i < nBytesToRead; i++ )
{
if( pBuffer[i] != '\r' )
pWriteBuffer[ nBytesToWrite++ ] = pBuffer[i];
@@ -416,8 +416,8 @@ bool psp::convertPfbToPfa( ::osl::File& rInFile, ::osl::File& rOutFile )
else
{
// binary data
- int nBuffer = 0;
- for( int i = 0; i < nBytesToRead && bSuccess; i++ )
+ unsigned int nBuffer = 0;
+ for( unsigned int i = 0; i < nBytesToRead && bSuccess; i++ )
{
buffer[ nBuffer++ ] = hexDigits[ pBuffer[ i ] >> 4 ];
buffer[ nBuffer++ ] = hexDigits[ pBuffer[ i ] & 15 ];