summaryrefslogtreecommitdiff
path: root/filter/source/t602/t602filter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/t602/t602filter.cxx')
-rw-r--r--filter/source/t602/t602filter.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx
index 118da3ec0f29..8a243fd3159b 100644
--- a/filter/source/t602/t602filter.cxx
+++ b/filter/source/t602/t602filter.cxx
@@ -37,6 +37,7 @@
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp>
#include <comphelper/oslfile2streamwrap.hxx>
+#include <rtl/ref.hxx>
using namespace ::cppu;
using namespace ::osl;
@@ -1205,8 +1206,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool SAL_CALL TestImport602(const OUString &rURL
osl::File aInputFile(rURL);
aInputFile.open(osl_File_OpenFlag_Read);
css::uno::Reference<io::XInputStream> xStream(new comphelper::OSLInputStreamWrapper(aInputFile));
- T602ImportFilter::T602ImportFilter aImport(xStream);
- return aImport.test();
+ rtl::Reference<T602ImportFilter::T602ImportFilter> aImport(
+ new T602ImportFilter::T602ImportFilter(xStream));
+ return aImport->test();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */