diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:58:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | b46492d06e389728bee7a2f2a8560c3891ef099b (patch) | |
tree | c612fed5ff929764d207bcb159604970c5343f60 /sd/qa/unit/sdmodeltestbase.hxx | |
parent | 623c2f723b3c599f05988c6d4db2a8e72a32c02d (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: If24b3ba75023c68fddcaec1ff7ae5f2517761587
Diffstat (limited to 'sd/qa/unit/sdmodeltestbase.hxx')
-rw-r--r-- | sd/qa/unit/sdmodeltestbase.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |