summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-04-29 19:33:38 +0200
committerJan Holesovsky <kendy@collabora.com>2021-01-07 16:32:51 +0100
commit6eb05d036d29f07f489f5cd31691f9510f8998a6 (patch)
tree4233de1ed9f248280a2801e1c30297a5c406009e /sw
parent5c603abc13b78dd7fd072249c9692dfc207a33c2 (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')
-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 6119365c6392..077a6e0a4205 100644
--- a/sw/qa/inc/swmodeltestbase.hxx
+++ b/sw/qa/inc/swmodeltestbase.hxx
@@ -924,7 +924,8 @@ protected:
*/
xmlDocPtr parseExportedFile()
{
- return parseXmlStream(maTempFile.GetStream(StreamMode::READ));
+ auto stream(SvFileStream(maTempFile.GetURL(), StreamMode::READ | StreamMode::TEMPORARY));
+ return parseXmlStream(&stream);
}
std::shared_ptr<SvStream> parseExportStream(const OUString& url, const OUString& rStreamName)