summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-07 15:56:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-07 18:59:55 +0200
commite0341d9be8817650482a4ff70006977fb00ef4cc (patch)
tree3fd58c9d4cce9f4e44e244f0df0eea2763365ca6 /connectivity
parenta465a96a0ae90e115dec26c4e51f1114feb936ac (diff)
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I9a647ba5c867e2152c204e1da98b5139091e51bd
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/qa/connectivity/mork/DriverTest.cxx4
-rw-r--r--connectivity/source/commontools/RowFunctionParser.cxx2
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<XConnection> 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 )
{
}