diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-01 17:18:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-01 17:18:40 +0200 |
commit | 317e5b5065dd2dd5b397608a016668c18d090072 (patch) | |
tree | 968d9bace6a6bf7ef4623aff348368536d1fa48d /filter | |
parent | 4475c17da56e6eec034e66f039f941d0f18515bc (diff) |
loplugin:refcounting
Change-Id: If98d81e37ee939feec70db737fdbdb5f53b555c4
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/t602/t602filter.cxx | 6 |
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: */ |