From 62633dfe026bc3badf7066e5fb454036bae9cfdc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Apr 2016 12:08:00 +0200 Subject: clang-tidy performance-unnecessary-value-param in various Change-Id: I7168d44dab8e6a8e37bb7920d744ff32f5e52907 Reviewed-on: https://gerrit.libreoffice.org/24019 Tested-by: Jenkins Reviewed-by: Noel Grandin --- io/source/acceptor/acc_socket.cxx | 8 ++++---- io/source/connector/ctr_socket.cxx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'io') 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) + static void callStarted(const Reference& xStreamListener) { xStreamListener->started(); } @@ -137,7 +137,7 @@ namespace io_acceptor { explicit callError(const Any & any); - void operator () (Reference xStreamListener); + void operator () (const Reference& xStreamListener); }; callError::callError(const Any & aAny) @@ -145,12 +145,12 @@ namespace io_acceptor { { } - void callError::operator () (Reference xStreamListener) + void callError::operator () (const Reference& xStreamListener) { xStreamListener->error(any); } - static void callClosed(Reference xStreamListener) + static void callClosed(const Reference& 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) + static void callStarted(const Reference& xStreamListener) { xStreamListener->started(); } @@ -58,7 +58,7 @@ namespace stoc_connector { explicit callError(const Any & any); - void operator () (Reference xStreamListener); + void operator () (const Reference& xStreamListener); }; callError::callError(const Any & aAny) @@ -66,12 +66,12 @@ namespace stoc_connector { { } - void callError::operator () (Reference xStreamListener) + void callError::operator () (const Reference& xStreamListener) { xStreamListener->error(any); } - static void callClosed(Reference xStreamListener) + static void callClosed(const Reference& xStreamListener) { xStreamListener->closed(); } -- cgit v1.2.3