summaryrefslogtreecommitdiff
path: root/writerperfect/qa
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-17 18:23:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-18 08:17:57 +0100
commit1491b0003a03064a3cec30fc71c35d46eb6970b2 (patch)
tree3f0b39a55046de669f5f0d67b0795702115ca80c /writerperfect/qa
parente981d8f787764bafc64105159960f7a41440cd3d (diff)
loplugin:referencecasting in writerperfect
Change-Id: I2b8dfca7344caa4b9dd503fc3fca383a6cee8f04 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111077 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect/qa')
-rw-r--r--writerperfect/qa/unit/DrawingImportTest.cxx4
-rw-r--r--writerperfect/qa/unit/PresentationImportTest.cxx4
-rw-r--r--writerperfect/qa/unit/SpreadsheetImportTest.cxx4
-rw-r--r--writerperfect/qa/unit/TextImportTest.cxx4
-rw-r--r--writerperfect/qa/unit/wpftimport.cxx2
5 files changed, 9 insertions, 9 deletions
diff --git a/writerperfect/qa/unit/DrawingImportTest.cxx b/writerperfect/qa/unit/DrawingImportTest.cxx
index 6fb1f98ef6b2..8af2ec8d62b7 100644
--- a/writerperfect/qa/unit/DrawingImportTest.cxx
+++ b/writerperfect/qa/unit/DrawingImportTest.cxx
@@ -123,8 +123,8 @@ void DrawingImportTest::test()
using namespace css;
rtl::Reference<DrawingImportFilter> xFilter{ new DrawingImportFilter(m_xContext) };
- writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter.get(),
- "private:factory/sdraw", m_xDesktop, m_xContext);
+ writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter, "private:factory/sdraw",
+ m_xDesktop, m_xContext);
uno::Reference<drawing::XDrawPagesSupplier> xDoc(aLoader.getDocument(), uno::UNO_QUERY);
CPPUNIT_ASSERT(xDoc.is());
diff --git a/writerperfect/qa/unit/PresentationImportTest.cxx b/writerperfect/qa/unit/PresentationImportTest.cxx
index e1414dec5b85..0c29c72695df 100644
--- a/writerperfect/qa/unit/PresentationImportTest.cxx
+++ b/writerperfect/qa/unit/PresentationImportTest.cxx
@@ -123,8 +123,8 @@ void PresentationImportTest::test()
using namespace css;
rtl::Reference<PresentationImportFilter> xFilter{ new PresentationImportFilter(m_xContext) };
- writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter.get(),
- "private:factory/simpress", m_xDesktop, m_xContext);
+ writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter, "private:factory/simpress",
+ m_xDesktop, m_xContext);
uno::Reference<drawing::XDrawPagesSupplier> xDoc(aLoader.getDocument(), uno::UNO_QUERY);
CPPUNIT_ASSERT(xDoc.is());
diff --git a/writerperfect/qa/unit/SpreadsheetImportTest.cxx b/writerperfect/qa/unit/SpreadsheetImportTest.cxx
index caf5d4de94ec..3c5de090ce1c 100644
--- a/writerperfect/qa/unit/SpreadsheetImportTest.cxx
+++ b/writerperfect/qa/unit/SpreadsheetImportTest.cxx
@@ -117,8 +117,8 @@ void SpreadsheetImportTest::test()
using namespace css;
rtl::Reference<SpreadsheetImportFilter> xFilter{ new SpreadsheetImportFilter(m_xContext) };
- writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter.get(),
- "private:factory/scalc", m_xDesktop, m_xContext);
+ writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter, "private:factory/scalc",
+ m_xDesktop, m_xContext);
uno::Reference<sheet::XSpreadsheetDocument> xDoc(aLoader.getDocument(), uno::UNO_QUERY);
CPPUNIT_ASSERT(xDoc.is());
diff --git a/writerperfect/qa/unit/TextImportTest.cxx b/writerperfect/qa/unit/TextImportTest.cxx
index 0b482a75c9a3..c1ff7ad75ff2 100644
--- a/writerperfect/qa/unit/TextImportTest.cxx
+++ b/writerperfect/qa/unit/TextImportTest.cxx
@@ -111,8 +111,8 @@ void TextImportTest::test()
using namespace css;
rtl::Reference<TextImportFilter> xFilter{ new TextImportFilter(m_xContext) };
- writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter.get(),
- "private:factory/swriter", m_xDesktop, m_xContext);
+ writerperfect::test::WpftLoader aLoader(createDummyInput(), xFilter, "private:factory/swriter",
+ m_xDesktop, m_xContext);
uno::Reference<text::XTextDocument> xDoc(aLoader.getDocument(), uno::UNO_QUERY);
CPPUNIT_ASSERT(xDoc.is());
diff --git a/writerperfect/qa/unit/wpftimport.cxx b/writerperfect/qa/unit/wpftimport.cxx
index fe3bfa02f9a6..5034f159e704 100644
--- a/writerperfect/qa/unit/wpftimport.cxx
+++ b/writerperfect/qa/unit/wpftimport.cxx
@@ -21,7 +21,7 @@ css::uno::Reference<css::io::XInputStream> createDummyInput()
{
rtl::Reference<comphelper::SequenceInputStream> xDummyInput(
new comphelper::SequenceInputStream(css::uno::Sequence<sal_Int8>()));
- return xDummyInput.get();
+ return xDummyInput;
}
CPPUNIT_PLUGIN_IMPLEMENT();