summaryrefslogtreecommitdiff
path: root/opencl
diff options
context:
space:
mode:
Diffstat (limited to 'opencl')
-rw-r--r--opencl/inc/opencl_device_selection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h
index 19b74aba665f..d49974cf848a 100644
--- a/opencl/inc/opencl_device_selection.h
+++ b/opencl/inc/opencl_device_selection.h
@@ -244,7 +244,7 @@ private:
static int funcWriteCallback(void* pContext, const char* sBuffer, int nLen)
{
SvStream* pStream = static_cast<SvStream*>(pContext);
- return static_cast<int>(pStream->Write(sBuffer, nLen));
+ return static_cast<int>(pStream->WriteBytes(sBuffer, nLen));
}
static int funcCloseCallback(void* pContext)
@@ -340,7 +340,7 @@ public:
{
sal_Size nSize = pStream->remainingSize();
std::vector<sal_uInt8> aBuffer(nSize + 1);
- pStream->Read(aBuffer.data(), nSize);
+ pStream->ReadBytes(aBuffer.data(), nSize);
aBuffer[nSize] = 0;
mpDocPtr = xmlParseDoc(reinterpret_cast<xmlChar*>(aBuffer.data()));
if (mpDocPtr == nullptr)