From b647996a9babbee7b33cf45192e57df6a124628b Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 14 Sep 2016 17:01:50 +0200 Subject: replace sal_Size with std::size_t (or sal_uInt64 for SvStream pos) ... except in include/rtl, include/sal, include/uno, where sal_Size is retained for compatibility, and where callers of rtl functions pass in pointers that are incompatible on MSVC. Change-Id: I8344453780689f5120ba0870e44965b6d292450c --- test/source/htmltesttools.cxx | 2 +- test/source/xmltesttools.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx index f318edd21fe6..4f28b1511791 100644 --- a/test/source/htmltesttools.cxx +++ b/test/source/htmltesttools.cxx @@ -26,7 +26,7 @@ htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile& aTempFile) htmlDocPtr HtmlTestTools::parseHtmlStream(SvStream* pStream) { - sal_Size nSize = pStream->remainingSize(); + std::size_t nSize = pStream->remainingSize(); std::unique_ptr pBuffer(new sal_uInt8[nSize + 1]); pStream->ReadBytes(pBuffer.get(), nSize); pBuffer[nSize] = 0; diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx index de5a3d9b0d38..55e194935769 100644 --- a/test/source/xmltesttools.cxx +++ b/test/source/xmltesttools.cxx @@ -42,7 +42,7 @@ xmlDocPtr XmlTestTools::parseXml(utl::TempFile& aTempFile) xmlDocPtr XmlTestTools::parseXmlStream(SvStream* pStream) { - sal_Size nSize = pStream->remainingSize(); + std::size_t nSize = pStream->remainingSize(); std::unique_ptr pBuffer(new sal_uInt8[nSize + 1]); pStream->ReadBytes(pBuffer.get(), nSize); pBuffer[nSize] = 0; -- cgit