From e0341d9be8817650482a4ff70006977fb00ef4cc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 7 Jul 2016 15:56:32 +0200 Subject: [PATCH] loplugin:passstuffbyref also for {css::uno,rtl}::Reference Change-Id: I9a647ba5c867e2152c204e1da98b5139091e51bd --- connectivity/qa/connectivity/mork/DriverTest.cxx | 4 ++-- connectivity/source/commontools/RowFunctionParser.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/connectivity/qa/connectivity/mork/DriverTest.cxx b/connectivity/qa/connectivity/mork/DriverTest.cxx index f765ce2ba72a..54cd99dd3b0d 100644 --- a/connectivity/qa/connectivity/mork/DriverTest.cxx +++ b/connectivity/qa/connectivity/mork/DriverTest.cxx @@ -27,7 +27,7 @@ class MorkDriverTest: public test::BootstrapFixture public: MorkDriverTest() : test::BootstrapFixture(false, false) {}; - void checkAcceptsURL(Reference< XDriver> xDriver, const char* url, bool expected); + void checkAcceptsURL(Reference< XDriver> const & xDriver, const char* url, bool expected); void test_metadata(); void test_select_default_all(); void test_select_list_table_joe_doe_5(); @@ -47,7 +47,7 @@ private: Reference m_xConnection; }; -void MorkDriverTest::checkAcceptsURL(Reference< XDriver> xDriver, const char* url, bool expected) +void MorkDriverTest::checkAcceptsURL(Reference< XDriver> const & xDriver, const char* url, bool expected) { bool res = xDriver->acceptsURL(OUString::createFromAscii(url)); if (res != expected) diff --git a/connectivity/source/commontools/RowFunctionParser.cxx b/connectivity/source/commontools/RowFunctionParser.cxx index b12ba73ffb07..b44713f4c961 100644 --- a/connectivity/source/commontools/RowFunctionParser.cxx +++ b/connectivity/source/commontools/RowFunctionParser.cxx @@ -57,7 +57,7 @@ class ConstantValueExpression : public ExpressionNode public: - explicit ConstantValueExpression( ORowSetValueDecoratorRef rValue ) : + explicit ConstantValueExpression( ORowSetValueDecoratorRef const & rValue ) : maValue( rValue ) { }