From 7f8f277b94704a289fbbd1b836e4e5d66311580d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Jan 2015 09:28:42 +0200 Subject: fdo#84938: convert STREAM_ #defines to 'enum class' Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e --- test/source/htmltesttools.cxx | 2 +- test/source/mtfxmldump.cxx | 2 +- test/source/primitive2dxmldump.cxx | 2 +- test/source/xmltesttools.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/source') diff --git a/test/source/htmltesttools.cxx b/test/source/htmltesttools.cxx index 6907366bb29c..274166bde855 100644 --- a/test/source/htmltesttools.cxx +++ b/test/source/htmltesttools.cxx @@ -13,7 +13,7 @@ htmlDocPtr HtmlTestTools::parseHtml(utl::TempFile& aTempFile) { - SvFileStream aFileStream(aTempFile.GetURL(), STREAM_READ); + SvFileStream aFileStream(aTempFile.GetURL(), StreamMode::READ); htmlDocPtr doc = parseHtmlStream(&aFileStream); xmlFree(doc->name); doc->name = reinterpret_cast( diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx index ee896581e48f..6e12524862a8 100644 --- a/test/source/mtfxmldump.cxx +++ b/test/source/mtfxmldump.cxx @@ -238,7 +238,7 @@ xmlDocPtr MetafileXmlDump::dumpAndParse(const GDIMetaFile& rMetaFile, const OUSt if (rTempStreamName.isEmpty()) pStream.reset(new SvMemoryStream()); else - pStream.reset(new SvFileStream(rTempStreamName, STREAM_STD_READWRITE | STREAM_TRUNC)); + pStream.reset(new SvFileStream(rTempStreamName, STREAM_STD_READWRITE | StreamMode::TRUNC)); XmlWriter aWriter(pStream.get()); aWriter.startDocument(); diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx index 0fdf89642254..0af7c7c14c23 100644 --- a/test/source/primitive2dxmldump.cxx +++ b/test/source/primitive2dxmldump.cxx @@ -68,7 +68,7 @@ xmlDocPtr Primitive2dXmlDump::dumpAndParse( if (rTempStreamName.isEmpty()) pStream.reset(new SvMemoryStream()); else - pStream.reset(new SvFileStream(rTempStreamName, STREAM_STD_READWRITE | STREAM_TRUNC)); + pStream.reset(new SvFileStream(rTempStreamName, STREAM_STD_READWRITE | StreamMode::TRUNC)); XmlWriter aWriter(pStream.get()); aWriter.startDocument(); diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx index 4694570226b6..749e87e89cf2 100644 --- a/test/source/xmltesttools.cxx +++ b/test/source/xmltesttools.cxx @@ -36,7 +36,7 @@ XmlTestTools::~XmlTestTools() xmlDocPtr XmlTestTools::parseXml(utl::TempFile& aTempFile) { - SvFileStream aFileStream(aTempFile.GetURL(), STREAM_READ); + SvFileStream aFileStream(aTempFile.GetURL(), StreamMode::READ); return parseXmlStream(&aFileStream); } -- cgit