summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwpdrawobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/lwpdrawobj.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpdrawobj.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx
index cab4dd260125..8361e21cf64c 100644
--- a/lotuswordpro/source/filter/lwpdrawobj.cxx
+++ b/lotuswordpro/source/filter/lwpdrawobj.cxx
@@ -151,7 +151,7 @@ void LwpDrawObj::ReadClosedObjStyle()
// fill style
m_pStream->ReadUInt16( m_aClosedObjStyleRec.nFillType );
- m_pStream->Read(m_aClosedObjStyleRec.pFillPattern,
+ m_pStream->ReadBytes(m_aClosedObjStyleRec.pFillPattern,
sizeof(m_aClosedObjStyleRec.pFillPattern));
}
@@ -1036,7 +1036,7 @@ void LwpDrawTextBox::Read()
m_aTextRec.nTextWidth = 1;
m_pStream->ReadInt16( m_aTextRec.nTextHeight );
- m_pStream->Read(m_aTextRec.tmpTextFaceName, DRAW_FACESIZE);
+ m_pStream->ReadBytes(m_aTextRec.tmpTextFaceName, DRAW_FACESIZE);
m_pStream->SeekRel(1);// PitchAndFamily
m_pStream->ReadInt16( m_aTextRec.nTextSize );
@@ -1062,7 +1062,7 @@ void LwpDrawTextBox::Read()
sal_Int16 TextLength = m_aObjHeader.nRecLen - 71;
m_aTextRec.pTextString = new sal_uInt8 [TextLength];
- m_pStream->Read(m_aTextRec.pTextString, TextLength);
+ m_pStream->ReadBytes(m_aTextRec.pTextString, TextLength);
}
OUString LwpDrawTextBox::RegisterStyle()
@@ -1242,7 +1242,7 @@ void LwpDrawTextArt::Read()
m_pStream->SeekRel(1);
- m_pStream->Read(m_aTextArtRec.tmpTextFaceName, DRAW_FACESIZE);
+ m_pStream->ReadBytes(m_aTextArtRec.tmpTextFaceName, DRAW_FACESIZE);
m_pStream->SeekRel(1);// PitchAndFamily
m_pStream->ReadInt16( m_aTextArtRec.nTextSize );
@@ -1265,7 +1265,7 @@ void LwpDrawTextArt::Read()
throw BadRead();
m_aTextArtRec.pTextString = new sal_uInt8 [m_aTextArtRec.nTextLen];
- m_pStream->Read(m_aTextArtRec.pTextString, m_aTextArtRec.nTextLen);
+ m_pStream->ReadBytes(m_aTextArtRec.pTextString, m_aTextArtRec.nTextLen);
m_aTextArtRec.pTextString[m_aTextArtRec.nTextLen-1] = 0;
}
@@ -1476,7 +1476,7 @@ void LwpDrawBitmap::Read()
pPicData += 30*sizeof(sal_uInt8);
}
- m_pStream->Read(pPicData, nDIBRemaining);
+ m_pStream->ReadBytes(pPicData, nDIBRemaining);
}
OUString LwpDrawBitmap::RegisterStyle()