From 0b23eec200c8c12db5778405df44f4bf8e38e4ad Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 26 May 2016 16:02:39 +0200 Subject: teach refcounting clang plugin about uno::Reference uno::Reference is only allowed to used with classes that have a ::static_type member. So convert all those places to rtl::Reference. Maybe we need some LIBO_INTERNAL_ONLY constructors on rtl::Reference and uno::Reference to make this a little smoother? Change-Id: Icdcb35d71ca40a87b1dc474096776412adbfc7e3 Reviewed-on: https://gerrit.libreoffice.org/25516 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sdext/source/pdfimport/test/pdf2xml.cxx | 3 ++- sdext/source/pdfimport/test/tests.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'sdext/source') diff --git a/sdext/source/pdfimport/test/pdf2xml.cxx b/sdext/source/pdfimport/test/pdf2xml.cxx index 574a81a4460b..f0caa1d8ae9a 100644 --- a/sdext/source/pdfimport/test/pdf2xml.cxx +++ b/sdext/source/pdfimport/test/pdf2xml.cxx @@ -27,6 +27,7 @@ #include #include +#include #include #include #include @@ -74,7 +75,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) test::BootstrapFixtureBase aEnv; aEnv.setUp(); - uno::Reference xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), aEnv.getComponentContext()) ); + rtl::Reference xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), aEnv.getComponentContext()) ); xAdaptor->setTreeVisitorFactory(pTreeFactory); nRet = xAdaptor->odfConvert(aSrcURL, new OutputWrap(aDstURL), nullptr) ? 0 : 1; } diff --git a/sdext/source/pdfimport/test/tests.cxx b/sdext/source/pdfimport/test/tests.cxx index e48962341855..38f09563ae20 100644 --- a/sdext/source/pdfimport/test/tests.cxx +++ b/sdext/source/pdfimport/test/tests.cxx @@ -468,7 +468,7 @@ namespace void testOdfDrawExport() { - uno::Reference xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()) ); + rtl::Reference xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()) ); xAdaptor->setTreeVisitorFactory( createDrawTreeVisitorFactory() ); OUString tempFileURL; @@ -483,7 +483,7 @@ namespace void testOdfWriterExport() { - uno::Reference xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()) ); + rtl::Reference xAdaptor( new pdfi::PDFIRawAdaptor(OUString(), getComponentContext()) ); xAdaptor->setTreeVisitorFactory( createWriterTreeVisitorFactory() ); OUString tempFileURL; @@ -498,7 +498,7 @@ namespace void testTdf96993() { - uno::Reference xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext())); + rtl::Reference xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext())); xAdaptor->setTreeVisitorFactory(createDrawTreeVisitorFactory()); OString aOutput; @@ -512,7 +512,7 @@ namespace void testTdf98421() { - uno::Reference xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext())); + rtl::Reference xAdaptor(new pdfi::PDFIRawAdaptor(OUString(), getComponentContext())); xAdaptor->setTreeVisitorFactory(createWriterTreeVisitorFactory()); OString aOutput; -- cgit