summaryrefslogtreecommitdiff
path: root/sd/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:58:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commitb46492d06e389728bee7a2f2a8560c3891ef099b (patch)
treec612fed5ff929764d207bcb159604970c5343f60 /sd/qa
parent623c2f723b3c599f05988c6d4db2a8e72a32c02d (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: If24b3ba75023c68fddcaec1ff7ae5f2517761587
Diffstat (limited to 'sd/qa')
-rw-r--r--sd/qa/unit/export-tests-ooxml2.cxx4
-rw-r--r--sd/qa/unit/sdmodeltestbase.hxx6
2 files changed, 5 insertions, 5 deletions
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx
index fc90c82cd7b6..83eecaa9082f 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -367,7 +367,7 @@ void SdOOXMLExportTest2::testTdf91378()
xDocShRef->DoClose();
}
-bool checkTransitionOnPage(uno::Reference<drawing::XDrawPagesSupplier> xDoc, sal_Int32 nSlideNumber,
+bool checkTransitionOnPage(uno::Reference<drawing::XDrawPagesSupplier> const & xDoc, sal_Int32 nSlideNumber,
sal_Int16 nExpectedTransitionType, sal_Int16 nExpectedTransitionSubType,
bool bExpectedDirection = true)
{
@@ -507,7 +507,7 @@ void SdOOXMLExportTest2::testTdf92527()
namespace {
-void matchNumberFormat( int nPage, uno::Reference< text::XTextField > xField)
+void matchNumberFormat( int nPage, uno::Reference< text::XTextField > const & xField)
{
uno::Reference< beans::XPropertySet > xPropSet( xField, uno::UNO_QUERY_THROW );
sal_Int32 nNumFmt;
diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx
index 29e498fddc53..9df78373be6f 100644
--- a/sd/qa/unit/sdmodeltestbase.hxx
+++ b/sd/qa/unit/sdmodeltestbase.hxx
@@ -291,7 +291,7 @@ protected:
return pPage;
}
- uno::Reference< beans::XPropertySet > getShape( int nShape, uno::Reference< drawing::XDrawPage > xPage )
+ uno::Reference< beans::XPropertySet > getShape( int nShape, uno::Reference< drawing::XDrawPage > const & xPage )
{
uno::Reference< beans::XPropertySet > xShape( xPage->getByIndex( nShape ), uno::UNO_QUERY );
CPPUNIT_ASSERT_MESSAGE( "Failed to load shape", xShape.is() );
@@ -309,7 +309,7 @@ protected:
}
// Nth paragraph of text in given text shape
- uno::Reference< text::XTextRange > getParagraphFromShape( int nPara, uno::Reference< beans::XPropertySet > xShape )
+ uno::Reference< text::XTextRange > getParagraphFromShape( int nPara, uno::Reference< beans::XPropertySet > const & xShape )
{
uno::Reference< text::XText > xText = uno::Reference< text::XTextRange>( xShape, uno::UNO_QUERY )->getText();
CPPUNIT_ASSERT_MESSAGE( "Not a text shape", xText.is() );
@@ -325,7 +325,7 @@ protected:
return xParagraph;
}
- uno::Reference< text::XTextRange > getRunFromParagraph( int nRun, uno::Reference< text::XTextRange > xParagraph )
+ uno::Reference< text::XTextRange > getRunFromParagraph( int nRun, uno::Reference< text::XTextRange > const & xParagraph )
{
uno::Reference< container::XEnumerationAccess > runEnumAccess(xParagraph, uno::UNO_QUERY);
uno::Reference< container::XEnumeration > runEnum = runEnumAccess->createEnumeration();