summaryrefslogtreecommitdiff
path: root/linguistic
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 /linguistic
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 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx2
-rw-r--r--linguistic/source/dicimp.hxx2
-rw-r--r--linguistic/source/gciterator.cxx6
-rw-r--r--linguistic/source/gciterator.hxx4
-rw-r--r--linguistic/source/iprcache.cxx4
5 files changed, 9 insertions, 9 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index c22894ce9518..b243a25cb225 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -490,7 +490,7 @@ sal_uLong DictionaryNeo::saveEntries(const OUString &rURL)
}
void DictionaryNeo::launchEvent(sal_Int16 nEvent,
- uno::Reference< XDictionaryEntry > xEntry)
+ const uno::Reference< XDictionaryEntry >& xEntry)
{
MutexGuard aGuard( GetLinguMutex() );
diff --git a/linguistic/source/dicimp.hxx b/linguistic/source/dicimp.hxx
index e1bf14609d6d..6a8e89396779 100644
--- a/linguistic/source/dicimp.hxx
+++ b/linguistic/source/dicimp.hxx
@@ -60,7 +60,7 @@ class DictionaryNeo :
DictionaryNeo & operator = (const DictionaryNeo &) = delete;
void launchEvent(sal_Int16 nEvent,
- css::uno::Reference< css::linguistic2::XDictionaryEntry > xEntry);
+ const css::uno::Reference< css::linguistic2::XDictionaryEntry >& xEntry);
sal_uLong loadEntries(const OUString &rMainURL);
sal_uLong saveEntries(const OUString &rMainURL);
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 22b475ec56b3..cb26ef6f0e35 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -225,7 +225,7 @@ extern "C" void lcl_workerfunc (void * gci)
}
static lang::Locale lcl_GetPrimaryLanguageOfSentence(
- uno::Reference< text::XFlatParagraph > xFlatPara,
+ const uno::Reference< text::XFlatParagraph >& xFlatPara,
sal_Int32 nStartIndex )
{
//get the language of the first word
@@ -301,8 +301,8 @@ OUString GrammarCheckingIterator::GetOrCreateDocId(
void GrammarCheckingIterator::AddEntry(
- uno::WeakReference< text::XFlatParagraphIterator > xFlatParaIterator,
- uno::WeakReference< text::XFlatParagraph > xFlatPara,
+ const uno::WeakReference< text::XFlatParagraphIterator >& xFlatParaIterator,
+ const uno::WeakReference< text::XFlatParagraph >& xFlatPara,
const OUString & rDocId,
sal_Int32 nStartIndex,
bool bAutomatic )
diff --git a/linguistic/source/gciterator.hxx b/linguistic/source/gciterator.hxx
index 3b15744f4074..36e5f098a2c8 100644
--- a/linguistic/source/gciterator.hxx
+++ b/linguistic/source/gciterator.hxx
@@ -123,8 +123,8 @@ class GrammarCheckingIterator:
OUString GetOrCreateDocId( const css::uno::Reference< css::lang::XComponent > &xComp );
void AddEntry(
- css::uno::WeakReference< css::text::XFlatParagraphIterator > xFlatParaIterator,
- css::uno::WeakReference< css::text::XFlatParagraph > xFlatPara,
+ const css::uno::WeakReference< css::text::XFlatParagraphIterator >& xFlatParaIterator,
+ const css::uno::WeakReference< css::text::XFlatParagraph >& xFlatPara,
const OUString &rDocId, sal_Int32 nStartIndex, bool bAutomatic );
void ProcessResult( const css::linguistic2::ProofreadingResult &rRes,
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index a83cb6bc0d81..6fe5af65bd48 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -58,7 +58,7 @@ static const struct
static void lcl_AddAsPropertyChangeListener(
- Reference< XPropertyChangeListener > xListener,
+ const Reference< XPropertyChangeListener >& xListener,
Reference< XLinguProperties > &rPropSet )
{
if (xListener.is() && rPropSet.is())
@@ -73,7 +73,7 @@ static void lcl_AddAsPropertyChangeListener(
static void lcl_RemoveAsPropertyChangeListener(
- Reference< XPropertyChangeListener > xListener,
+ const Reference< XPropertyChangeListener >& xListener,
Reference< XLinguProperties > &rPropSet )
{
if (xListener.is() && rPropSet.is())