diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index 2cf2a1351886..c82788dc6ff6 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -2760,10 +2760,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL ImportPPT( return bRet; } -extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportPPT(const OUString &rURL) +extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportPPT(SvStream &rStream) { - SvFileStream aFileStream(rURL, StreamMode::READ); - tools::SvRef<SotStorage> xStorage(new SotStorage(aFileStream)); + tools::SvRef<SotStorage> xStorage(new SotStorage(rStream)); if (xStorage->GetError()) return false; @@ -2773,7 +2772,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImportPPT(const OUString &rURL SdDLL::Init(); - SfxMedium aSrcMed(rURL, StreamMode::STD_READ); + SfxMedium aSrcMed("", StreamMode::STD_READ); xDocStream->SetVersion(xStorage->GetVersion()); xDocStream->SetCryptMaskKey(xStorage->GetKey()); |