summaryrefslogtreecommitdiff
path: root/eventattacher
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-17 10:50:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-13 19:11:49 +0200
commit1743d74e87745a26043642a06dc8a57b1af29740 (patch)
tree86354c464ed2e51bf940b58333844c0ad0670d01 /eventattacher
parenta0b9a7e7f0d14d0f121e54cb8979074bc5dfbe38 (diff)
clang-tidy modernize-pass-by-value in various
Change-Id: Ie091b22bd77d4e1fbff46545bc86c12f1dbafcfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138171 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'eventattacher')
-rw-r--r--eventattacher/source/eventattacher.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx
index 33c41a0f9d03..f344e0cccb0d 100644
--- a/eventattacher/source/eventattacher.cxx
+++ b/eventattacher/source/eventattacher.cxx
@@ -40,6 +40,7 @@
#include <cppuhelper/supportsservice.hxx>
#include <mutex>
+#include <utility>
namespace com::sun::star::lang { class XMultiServiceFactory; }
@@ -65,7 +66,7 @@ class InvocationToAllListenerMapper : public WeakImplHelper< XInvocation >
{
public:
InvocationToAllListenerMapper( const Reference< XIdlClass >& ListenerType,
- const Reference< XAllListener >& AllListener, const Any& Helper );
+ const Reference< XAllListener >& AllListener, Any Helper );
// XInvocation
virtual Reference< XIntrospectionAccess > SAL_CALL getIntrospection() override;
@@ -107,10 +108,10 @@ static Reference< XInterface > createAllListenerAdapter
// InvocationToAllListenerMapper
InvocationToAllListenerMapper::InvocationToAllListenerMapper
- ( const Reference< XIdlClass >& ListenerType, const Reference< XAllListener >& AllListener, const Any& Helper )
+ ( const Reference< XIdlClass >& ListenerType, const Reference< XAllListener >& AllListener, Any Helper )
: m_xAllListener( AllListener )
, m_xListenerType( ListenerType )
- , m_Helper( Helper )
+ , m_Helper(std::move( Helper ))
{
}
@@ -394,7 +395,7 @@ namespace {
class FilterAllListenerImpl : public WeakImplHelper< XAllListener >
{
public:
- FilterAllListenerImpl( EventAttacherImpl * pEA_, const OUString& EventMethod_,
+ FilterAllListenerImpl( EventAttacherImpl * pEA_, OUString EventMethod_,
const Reference< XAllListener >& AllListener_ );
// XAllListener
@@ -417,10 +418,10 @@ private:
}
-FilterAllListenerImpl::FilterAllListenerImpl( EventAttacherImpl * pEA_, const OUString& EventMethod_,
+FilterAllListenerImpl::FilterAllListenerImpl( EventAttacherImpl * pEA_, OUString EventMethod_,
const Reference< XAllListener >& AllListener_ )
: m_pEA( pEA_ )
- , m_EventMethod( EventMethod_ )
+ , m_EventMethod(std::move( EventMethod_ ))
, m_AllListener( AllListener_ )
{
}