summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-12 12:08:00 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-14 11:37:19 +0000
commit62633dfe026bc3badf7066e5fb454036bae9cfdc (patch)
treeb1a30ddd709ba80b8629d916d54c03d733651d12 /io
parentaa458c31a5dfa2be8b6bd8f1b4e402ce8c27edde (diff)
clang-tidy performance-unnecessary-value-param in various
Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907 Reviewed-on: https://gerrit.libreoffice.org/24019 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'io')
-rw-r--r--io/source/acceptor/acc_socket.cxx8
-rw-r--r--io/source/connector/ctr_socket.cxx8
2 files changed, 8 insertions, 8 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index 0a1edc597af7..ae02856ea594 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -127,7 +127,7 @@ namespace io_acceptor {
t(listener);
}
- static void callStarted(Reference<XStreamListener> xStreamListener)
+ static void callStarted(const Reference<XStreamListener>& xStreamListener)
{
xStreamListener->started();
}
@@ -137,7 +137,7 @@ namespace io_acceptor {
explicit callError(const Any & any);
- void operator () (Reference<XStreamListener> xStreamListener);
+ void operator () (const Reference<XStreamListener>& xStreamListener);
};
callError::callError(const Any & aAny)
@@ -145,12 +145,12 @@ namespace io_acceptor {
{
}
- void callError::operator () (Reference<XStreamListener> xStreamListener)
+ void callError::operator () (const Reference<XStreamListener>& xStreamListener)
{
xStreamListener->error(any);
}
- static void callClosed(Reference<XStreamListener> xStreamListener)
+ static void callClosed(const Reference<XStreamListener>& xStreamListener)
{
xStreamListener->closed();
}
diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx
index 2c0d3f691b2f..00f35eb627f3 100644
--- a/io/source/connector/ctr_socket.cxx
+++ b/io/source/connector/ctr_socket.cxx
@@ -48,7 +48,7 @@ namespace stoc_connector {
}
- static void callStarted(Reference<XStreamListener> xStreamListener)
+ static void callStarted(const Reference<XStreamListener>& xStreamListener)
{
xStreamListener->started();
}
@@ -58,7 +58,7 @@ namespace stoc_connector {
explicit callError(const Any & any);
- void operator () (Reference<XStreamListener> xStreamListener);
+ void operator () (const Reference<XStreamListener>& xStreamListener);
};
callError::callError(const Any & aAny)
@@ -66,12 +66,12 @@ namespace stoc_connector {
{
}
- void callError::operator () (Reference<XStreamListener> xStreamListener)
+ void callError::operator () (const Reference<XStreamListener>& xStreamListener)
{
xStreamListener->error(any);
}
- static void callClosed(Reference<XStreamListener> xStreamListener)
+ static void callClosed(const Reference<XStreamListener>& xStreamListener)
{
xStreamListener->closed();
}