summaryrefslogtreecommitdiff
path: root/sw/qa/inc
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-29 19:33:38 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-05-07 19:14:17 +0200
commit638feb0e062537dd0f41b7b977b5b9fa1ac096ae (patch)
tree9721d403a7c12711fee1d8f016cbc7ac94a79c41 /sw/qa/inc
parenta65ec136fbd0dae889b20fba657b40af467fcb27 (diff)
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@cib.de>
Diffstat (limited to 'sw/qa/inc')
-rw-r--r--sw/qa/inc/swmodeltestbase.hxx3
1 files changed, 2 insertions, 1 deletions
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)