summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/source/htmltesttools.cxx2
-rw-r--r--test/source/xmltesttools.cxx2
-rw-r--r--test/source/xmlwriter.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx
index f876dec101a2..f318edd21fe6 100644
--- a/test/source/htmltesttools.cxx
+++ b/test/source/htmltesttools.cxx
@@ -28,7 +28,7 @@ htmlDocPtr HtmlTestTools::parseHtmlStream(SvStream* pStream)
{
sal_Size nSize = pStream->remainingSize();
std::unique_ptr<sal_uInt8[]> pBuffer(new sal_uInt8[nSize + 1]);
- pStream->Read(pBuffer.get(), nSize);
+ pStream->ReadBytes(pBuffer.get(), nSize);
pBuffer[nSize] = 0;
return htmlParseDoc(reinterpret_cast<xmlChar*>(pBuffer.get()), nullptr);
}
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index 02ef2793686b..de5a3d9b0d38 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -44,7 +44,7 @@ xmlDocPtr XmlTestTools::parseXmlStream(SvStream* pStream)
{
sal_Size nSize = pStream->remainingSize();
std::unique_ptr<sal_uInt8[]> pBuffer(new sal_uInt8[nSize + 1]);
- pStream->Read(pBuffer.get(), nSize);
+ pStream->ReadBytes(pBuffer.get(), nSize);
pBuffer[nSize] = 0;
return xmlParseDoc(reinterpret_cast<xmlChar*>(pBuffer.get()));
}
diff --git a/test/source/xmlwriter.cxx b/test/source/xmlwriter.cxx
index d19284185153..f363378d57a1 100644
--- a/test/source/xmlwriter.cxx
+++ b/test/source/xmlwriter.cxx
@@ -27,7 +27,7 @@ namespace
int lclWriteCallback(void* pContext, const char* sBuffer, int nLen)
{
SvStream* pStream = static_cast<SvStream*>(pContext);
- return (int) pStream->Write(sBuffer, nLen);
+ return static_cast<int>(pStream->WriteBytes(sBuffer, nLen));
}
int lclCloseCallback(void* pContext)
49 +0000'>2014-02-23Remove unneccessary commentsAlexander Wilms 2013-12-12Remove unnecessary macro ITYPEStephan Bergmann 2013-10-23fdo#54938: Kill ServiceInfoHelper::supportsService and use cppu's instead.Marcos Paulo de Souza 2013-09-19convert some .cxx files in sd from String to OUStringNoel Grandin 2012-11-28re-base on ALv2 code. Includes:Michael Meeks