summaryrefslogtreecommitdiff
path: root/filter/source/graphicfilter/ios2met/ios2met.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/graphicfilter/ios2met/ios2met.cxx')
-rw-r--r--filter/source/graphicfilter/ios2met/ios2met.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/graphicfilter/ios2met/ios2met.cxx b/filter/source/graphicfilter/ios2met/ios2met.cxx
index 253a5c8144ba..f97bd23b25b2 100644
--- a/filter/source/graphicfilter/ios2met/ios2met.cxx
+++ b/filter/source/graphicfilter/ios2met/ios2met.cxx
@@ -2260,7 +2260,7 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, sal_uInt16 nDataLen)
// OK, now the map data is being pushed. Unfortunately OS2 and BMP
// do have a different RGB ordering when using 24-bit
std::unique_ptr<sal_uInt8[]> pBuf(new sal_uInt8[nDataLen]);
- pOS2MET->Read(pBuf.get(),nDataLen);
+ pOS2MET->ReadBytes(pBuf.get(), nDataLen);
if (p->nBitsPerPixel==24) {
sal_uLong i, j, nAlign, nBytesPerLine;
sal_uInt8 nTemp;
@@ -2278,7 +2278,7 @@ void OS2METReader::ReadImageData(sal_uInt16 nDataID, sal_uInt16 nDataLen)
}
}
}
- p->pBMP->Write(pBuf.get(),nDataLen);
+ p->pBMP->WriteBytes(pBuf.get(), nDataLen);
p->nMapPos+=nDataLen;
break;
}
@@ -2321,7 +2321,7 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize)
case 0x08: { // Font Typeface
char str[33];
pOS2MET->SeekRel(1);
- pOS2MET->Read( &str, 32 );
+ pOS2MET->ReadBytes( &str, 32 );
str[ 32 ] = 0;
OUString aStr( str, strlen(str), osl_getThreadTextEncoding() );
if ( aStr.compareToIgnoreAsciiCase( "Helv" ) == 0 )
@@ -2588,8 +2588,8 @@ void OS2METReader::ReadField(sal_uInt16 nFieldType, sal_uInt16 nFieldSize)
pOrdFile->SetEndian(SvStreamEndian::LITTLE);
}
std::unique_ptr<sal_uInt8[]> pBuf(new sal_uInt8[nFieldSize]);
- pOS2MET->Read(pBuf.get(),nFieldSize);
- pOrdFile->Write(pBuf.get(),nFieldSize);
+ pOS2MET->ReadBytes(pBuf.get(), nFieldSize);
+ pOrdFile->WriteBytes(pBuf.get(), nFieldSize);
break;
}
case MapCodFntMagic: