diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-23 20:14:38 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-04-30 17:45:22 +0200 |
commit | 116adf5341c681e4044f9fe940d0d143eeabc457 (patch) | |
tree | 5e6f83b29ea8e278337104636875e08ed7c9fc59 /sdext/source | |
parent | f220acf3aad954e20f3b15b30910432fac97ed15 (diff) |
Use getXWeak in sdext
Change-Id: I24563de37b98cad57823fe936e5bfa7e10e8a2c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150866
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/pdfiadaptor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/pdfiadaptor.cxx b/sdext/source/pdfimport/pdfiadaptor.cxx index 9cca84cdf92f..0d5bad2d6373 100644 --- a/sdext/source/pdfimport/pdfiadaptor.cxx +++ b/sdext/source/pdfimport/pdfiadaptor.cxx @@ -329,7 +329,7 @@ sdext_PDFIRawAdaptor_Writer_get_implementation( rtl::Reference<pdfi::PDFIRawAdaptor> pAdaptor = new pdfi::PDFIRawAdaptor( "org.libreoffice.comp.documents.WriterPDFImport", context ); pAdaptor->setTreeVisitorFactory(pdfi::createWriterTreeVisitorFactory()); pAdaptor->acquire(); - return static_cast<cppu::OWeakObject*>(pAdaptor.get()); + return getXWeak(pAdaptor.get()); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* @@ -339,7 +339,7 @@ sdext_PDFIRawAdaptor_Draw_get_implementation( rtl::Reference<pdfi::PDFIRawAdaptor> pAdaptor = new pdfi::PDFIRawAdaptor( "org.libreoffice.comp.documents.DrawPDFImport", context ); pAdaptor->setTreeVisitorFactory(pdfi::createDrawTreeVisitorFactory()); pAdaptor->acquire(); - return static_cast<cppu::OWeakObject*>(pAdaptor.get()); + return getXWeak(pAdaptor.get()); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* @@ -349,7 +349,7 @@ sdext_PDFIRawAdaptor_Impress_get_implementation( rtl::Reference<pdfi::PDFIRawAdaptor> pAdaptor = new pdfi::PDFIRawAdaptor( "org.libreoffice.comp.documents.ImpressPDFImport", context ); pAdaptor->setTreeVisitorFactory(pdfi::createImpressTreeVisitorFactory()); pAdaptor->acquire(); - return static_cast<cppu::OWeakObject*>(pAdaptor.get()); + return getXWeak(pAdaptor.get()); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* |