summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-02-15 11:52:46 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-15 16:02:11 +0100
commite20164ad9f2b3125c8ecdb5f19feee4a654e24f2 (patch)
tree954d95233c9d03feb41fec5d2bc8cf077ef54c4e
parenta8ea79b10bfc4851d092270f02fa8c817c9bc0d9 (diff)
editeng: fix up ODF export test code to build again
The ability to inspect the output from the editeng ODF export is useful, but the test code no longer built as the used SfxMedium ctor is gone. We don't really need a full SfxMedium, a simple SvFileStream is enough. Change-Id: I9b8cead4b7ebd6d4c9461cdecf357c84e623d856 Reviewed-on: https://gerrit.libreoffice.org/49806 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--editeng/source/xml/xmltxtexp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx
index 1ada3a700339..083d23626bd8 100644
--- a/editeng/source/xml/xmltxtexp.cxx
+++ b/editeng/source/xml/xmltxtexp.cxx
@@ -312,8 +312,8 @@ void SvxWriteXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection&
/* testcode
const OUString aURL( "file:///e:/test.xml" );
- SfxMedium aMedium( aURL, StreamMode::WRITE | StreamMode::TRUNC, sal_True );
- uno::Reference<io::XOutputStream> xOut( new utl::OOutputStreamWrapper( *aMedium.GetOutStream() ) );
+ SvFileStream aStream(aURL, StreamMode::WRITE | StreamMode::TRUNC);
+ xOut = new utl::OOutputStreamWrapper(aStream);
*/
@@ -329,7 +329,7 @@ void SvxWriteXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection&
xExporter->exportDoc();
/* testcode
- aMedium.Commit();
+ aStream.Close();
*/
}