diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-11 01:32:26 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-11 06:35:35 +0000 |
commit | a63c9c5de4de41d7b27fcee2c5e403145c970002 (patch) | |
tree | 2cce8ff46e3c3974713f8c2dba1e7dbb30645af1 /sc/qa/unit/helper | |
parent | 1a474b37ef155ad640633bcffb0c7eaee0009243 (diff) |
just take a reference
Change-Id: I9c156cc931fa1312df3588d86e2c592c8fd79c30
Reviewed-on: https://gerrit.libreoffice.org/23136
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/qa/unit/helper')
-rw-r--r-- | sc/qa/unit/helper/xpath.cxx | 4 | ||||
-rw-r--r-- | sc/qa/unit/helper/xpath.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/helper/xpath.cxx b/sc/qa/unit/helper/xpath.cxx index 78b48ddb6b5c..43dafa3a09c5 100644 --- a/sc/qa/unit/helper/xpath.cxx +++ b/sc/qa/unit/helper/xpath.cxx @@ -19,9 +19,9 @@ #include <com/sun/star/packages/zip/ZipFileAccess.hpp> -xmlDocPtr XPathHelper::parseExport(ScDocShell* pShell, uno::Reference<lang::XMultiServiceFactory> xSFactory, const OUString& rFile, sal_Int32 nFormat) +xmlDocPtr XPathHelper::parseExport(ScDocShell& rShell, uno::Reference<lang::XMultiServiceFactory> xSFactory, const OUString& rFile, sal_Int32 nFormat) { - std::shared_ptr<utl::TempFile> pTempFile = ScBootstrapFixture::exportTo(pShell, nFormat); + std::shared_ptr<utl::TempFile> pTempFile = ScBootstrapFixture::exportTo(&rShell, nFormat); // Read the XML stream we're interested in. uno::Reference<packages::zip::XZipFileAccess2> xNameAccess = packages::zip::ZipFileAccess::createWithURL(comphelper::getComponentContext(xSFactory), pTempFile->GetURL()); diff --git a/sc/qa/unit/helper/xpath.hxx b/sc/qa/unit/helper/xpath.hxx index dedd92961762..d45fc7666db2 100644 --- a/sc/qa/unit/helper/xpath.hxx +++ b/sc/qa/unit/helper/xpath.hxx @@ -36,7 +36,7 @@ namespace XPathHelper * xml stream, and asserting an XPath expression. This method returns the * xml stream, so that you can do the asserting. */ - SCQAHELPER_DLLPUBLIC xmlDocPtr parseExport(ScDocShell* pShell, uno::Reference< lang::XMultiServiceFactory> xSFactory, + SCQAHELPER_DLLPUBLIC xmlDocPtr parseExport(ScDocShell& rShell, uno::Reference< lang::XMultiServiceFactory> xSFactory, const OUString& rFile, sal_Int32 nFormat); } |