diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-03 09:55:06 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-11-03 13:41:14 +0100 |
commit | d40d64da771427423786dc62a2f4ad08cab53179 (patch) | |
tree | 74b5b460e963ede6b6ecdccaed9cf2c577c7a69c /unotest | |
parent | beceac5e0a2075696bbb267830ee952ade18da89 (diff) |
swmodeltestbase: remove duplicated code
parseExportStream is already in MacrosTest
Change-Id: Ibde88b176db1521966b6877bda90e06c278c397d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142218
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'unotest')
-rw-r--r-- | unotest/source/cpp/macros_test.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx index 55c34fed20e3..a8b8f6bdf572 100644 --- a/unotest/source/cpp/macros_test.cxx +++ b/unotest/source/cpp/macros_test.cxx @@ -92,14 +92,13 @@ void MacrosTest::dispatchCommand(const uno::Reference<lang::XComponent>& xCompon xDispatchHelper->executeDispatch(xFrame, rCommand, OUString(), 0, rPropertyValues); } -std::unique_ptr<SvStream> MacrosTest::parseExportStream(const utl::TempFileNamed& rTempFile, +std::unique_ptr<SvStream> MacrosTest::parseExportStream(const OUString& url, const OUString& rStreamName) { - const OUString aUrl = rTempFile.GetURL(); uno::Reference<uno::XComponentContext> xComponentContext = comphelper::getProcessComponentContext(); uno::Reference<packages::zip::XZipFileAccess2> const xZipNames( - packages::zip::ZipFileAccess::createWithURL(xComponentContext, aUrl)); + packages::zip::ZipFileAccess::createWithURL(xComponentContext, url)); uno::Reference<io::XInputStream> const xInputStream(xZipNames->getByName(rStreamName), uno::UNO_QUERY); std::unique_ptr<SvStream> pStream(utl::UcbStreamHelper::CreateStream(xInputStream, true)); |