[Libreoffice-commits] core.git: sw/qa
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 7 17:14:52 UTC 2020
sw/qa/inc/swmodeltestbase.hxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 638feb0e062537dd0f41b7b977b5b9fa1ac096ae
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Wed Apr 29 19:33:38 2020 +0200
Commit: Michael Stahl <michael.stahl at cib.de>
CommitDate: Thu May 7 19:14:17 2020 +0200
sw: fix SwModelTestBase::parseExportedFile()
Both tests in fodfexport.cxx didn't test anything becuase this was
called twice and the first time the stream was created for 0-sized file
and the 2nd time the existing stream was reused so still no data.
Change-Id: I97794490751d1f205919619484bb0c4ed962d4a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93174
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl at cib.de>
diff --git a/sw/qa/inc/swmodeltestbase.hxx b/sw/qa/inc/swmodeltestbase.hxx
index 44bfe8158cec..a7be42da2bd4 100644
--- a/sw/qa/inc/swmodeltestbase.hxx
+++ b/sw/qa/inc/swmodeltestbase.hxx
@@ -933,7 +933,8 @@ protected:
*/
xmlDocUniquePtr parseExportedFile()
{
- return parseXmlStream(maTempFile.GetStream(StreamMode::READ));
+ auto stream(SvFileStream(maTempFile.GetURL(), StreamMode::READ | StreamMode::TEMPORARY));
+ return parseXmlStream(&stream);
}
std::unique_ptr<SvStream> parseExportStream(const OUString& url, const OUString& rStreamName)
More information about the Libreoffice-commits
mailing list