summaryrefslogtreecommitdiff
path: root/linguistic/source/dlistimp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 15:00:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-18 20:56:00 +0200
commit825aeb04e6c45d0ba8ef1bd08e7ade297e9f5361 (patch)
tree94296a5a82547315092d928ea2540966eaa34f8a /linguistic/source/dlistimp.cxx
parent6b12ba07be44099725b722c8d86227d7ec79885f (diff)
clang-tidy modernize-pass-by-value in linguistic
Change-Id: Ia5fc81ed6e6e060d62e5ff42dccb06e36774a65c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134534 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic/source/dlistimp.cxx')
-rw-r--r--linguistic/source/dlistimp.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx
index 2901273c3e30..281abce9e11a 100644
--- a/linguistic/source/dlistimp.cxx
+++ b/linguistic/source/dlistimp.cxx
@@ -39,6 +39,7 @@
#include <unotools/resmgr.hxx>
#include <unotools/charclass.hxx>
#include <sal/log.hxx>
+#include <utility>
#include "dlistimp.hxx"
#include "dicimp.hxx"
@@ -72,7 +73,7 @@ class DicEvtListenerHelper :
sal_Int16 nNumCollectEvtListeners;
public:
- explicit DicEvtListenerHelper( const uno::Reference< XDictionaryList > &rxDicList );
+ explicit DicEvtListenerHelper( uno::Reference< XDictionaryList > xDicList );
virtual ~DicEvtListenerHelper() override;
// XEventListener
@@ -98,9 +99,9 @@ public:
DicEvtListenerHelper::DicEvtListenerHelper(
- const uno::Reference< XDictionaryList > &rxDicList ) :
+ uno::Reference< XDictionaryList > xDicList ) :
aDicListEvtListeners ( GetLinguMutex() ),
- xMyDicList ( rxDicList ),
+ xMyDicList (std::move( xDicList )),
nCondensedEvt(0), nNumCollectEvtListeners(0)
{
}