summaryrefslogtreecommitdiff
path: root/linguistic/source
diff options
context:
space:
mode:
Diffstat (limited to 'linguistic/source')
-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())