[Libreoffice-commits] core.git: editeng/source

Miklos Vajna vmiklos at collabora.co.uk
Thu Feb 15 15:02:35 UTC 2018


 editeng/source/xml/xmltxtexp.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit e20164ad9f2b3125c8ecdb5f19feee4a654e24f2
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Feb 15 11:52:46 2018 +0100

    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 at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

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();
 */
 
         }


More information about the Libreoffice-commits mailing list