diff options
Diffstat (limited to 'cui/source/dialogs')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 6 | ||||
-rw-r--r-- | cui/source/dialogs/hangulhanjadlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/hlmarkwn.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/scriptdlg.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 0a5815f6135d..75a14c890488 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -144,7 +144,7 @@ public: void SetErrorLanguageSelected(bool bSet){ m_bIsErrorLanguageSelected = bSet;} bool IsErrorLanguageSelected() const {return m_bIsErrorLanguageSelected;} - void SetDictionary(Reference<XDictionary> xDict) { m_xDictionary = xDict; } + void SetDictionary(const Reference<XDictionary>& xDict) { m_xDictionary = xDict; } Reference<XDictionary> GetDictionary() const {return m_xDictionary;} void SetAddedWord(const OUString& rWord) {m_sAddedWord = rWord;} const OUString& GetAddedWord() const { return m_sAddedWord;} @@ -1580,7 +1580,7 @@ void SentenceEditWindow_Impl::dispose() VclMultiLineEdit::dispose(); } -bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, css::uno::Reference<css::linguistic2::XSpellChecker1> xSpell ) +bool SentenceEditWindow_Impl::MarkNextError( bool bIgnoreCurrentError, const css::uno::Reference<css::linguistic2::XSpellChecker1>& xSpell ) { if (bIgnoreCurrentError) m_aIgnoreErrorsAt.insert( m_nErrorStart ); @@ -1775,7 +1775,7 @@ void SentenceEditWindow_Impl::RestoreCurrentError() } -void SentenceEditWindow_Impl::SetAlternatives( Reference< XSpellAlternatives> xAlt ) +void SentenceEditWindow_Impl::SetAlternatives( const Reference< XSpellAlternatives>& xAlt ) { TextPaM aCursor(0, m_nErrorStart); DBG_ASSERT(static_cast<const SpellErrorAttrib*>( diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index a073dfadc3ab..2e600ab9e91c 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -1465,7 +1465,7 @@ namespace svx namespace { - bool GetConversions( Reference< XConversionDictionary > _xDict, + bool GetConversions( const Reference< XConversionDictionary >& _xDict, const OUString& _rOrg, Sequence< OUString >& _rEntries ) { diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 10f8ead8f9eb..96e2a04c52a0 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -396,7 +396,7 @@ bool SvxHlinkDlgMarkWnd::RefreshFromDoc(const OUString& aURL) |* |************************************************************************/ -int SvxHlinkDlgMarkWnd::FillTree( uno::Reference< container::XNameAccess > xLinks, SvTreeListEntry* pParentEntry ) +int SvxHlinkDlgMarkWnd::FillTree( const uno::Reference< container::XNameAccess >& xLinks, SvTreeListEntry* pParentEntry ) { int nEntries=0; const uno::Sequence< OUString > aNames( xLinks->getElementNames() ); diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 0e8598629351..01dbaaa6889a 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -1140,7 +1140,7 @@ bool SvxScriptOrgDialog::getBoolProperty( Reference< beans::XPropertySet >& xPro return result; } -OUString SvxScriptOrgDialog::getListOfChildren( Reference< browse::XBrowseNode > node, int depth ) +OUString SvxScriptOrgDialog::getListOfChildren( const Reference< browse::XBrowseNode >& node, int depth ) { OUString result = "\n"; for( int i=0;i<=depth;i++ ) |