summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-02-15 11:52:46 +0100
committerAndras Timar <andras.timar@collabora.com>2018-03-25 20:08:04 +0200
commitf734ff65dfa8fd02a03f26c7b9d0a21692a6d5fb (patch)
treea1ae952a48dc3efd93f71d13a8ae7cc49d5536ff /editeng
parent984c9e6ff7a0e3afb06fd4ad1f77d75b7b50d7ef (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> (cherry picked from commit e20164ad9f2b3125c8ecdb5f19feee4a654e24f2)
Diffstat (limited to 'editeng')
-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();
*/
}