diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:56:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | e4651e2003c0d079b915ccef335374c1bf015a5a (patch) | |
tree | 7eb7e5988f3179f2591eca116bb78ce8032cebf5 /editeng | |
parent | cb53d9c4a2b0e57871567c3c819bb349d12542a6 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I5bb3c63790cb153c0d6f57a681ec6dda71d482be
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/editview.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/eerdll2.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 4 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 2 | ||||
-rw-r--r-- | editeng/source/misc/SvXMLAutoCorrectExport.cxx | 4 | ||||
-rw-r--r-- | editeng/source/misc/SvXMLAutoCorrectExport.hxx | 4 | ||||
-rw-r--r-- | editeng/source/misc/SvXMLAutoCorrectImport.cxx | 4 | ||||
-rw-r--r-- | editeng/source/misc/SvXMLAutoCorrectImport.hxx | 4 | ||||
-rw-r--r-- | editeng/source/misc/splwrap.cxx | 4 | ||||
-rw-r--r-- | editeng/source/misc/unolingu.cxx | 2 | ||||
-rw-r--r-- | editeng/source/outliner/overflowingtxt.cxx | 6 | ||||
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/UnoForbiddenCharsTable.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/unofield.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/unonrule.cxx | 2 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 4 |
17 files changed, 27 insertions, 27 deletions
diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 571b333ac9bc..8d8413925c1a 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -792,7 +792,7 @@ EditSelection EditEngine::InsertText(const EditTextObject& rTextObject, const Ed } EditSelection EditEngine::InsertText( - uno::Reference<datatransfer::XTransferable >& rxDataObj, + uno::Reference<datatransfer::XTransferable > const & rxDataObj, const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial) { return pImpEditEngine->InsertText(rxDataObj, rBaseURL, rPaM, bUseSpecial); @@ -2111,7 +2111,7 @@ void EditEngine::EraseVirtualDevice() pImpEditEngine->EraseVirtualDevice(); } -void EditEngine::SetSpeller( Reference< XSpellChecker1 > &xSpeller ) +void EditEngine::SetSpeller( Reference< XSpellChecker1 > const &xSpeller ) { pImpEditEngine->SetSpeller( xSpeller ); } diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 0cd9e6feb691..dcf09688e17b 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -616,7 +616,7 @@ void EditView::InsertText( const EditTextObject& rTextObject ) pImpEditView->pEditEngine->FormatAndUpdate( this ); } -void EditView::InsertText( css::uno::Reference< css::datatransfer::XTransferable > xDataObj, const OUString& rBaseURL, bool bUseSpecial ) +void EditView::InsertText( css::uno::Reference< css::datatransfer::XTransferable > const & xDataObj, const OUString& rBaseURL, bool bUseSpecial ) { pImpEditView->pEditEngine->UndoActionStart( EDITUNDO_INSERT ); pImpEditView->DeleteSelected(); diff --git a/editeng/source/editeng/eerdll2.hxx b/editeng/source/editeng/eerdll2.hxx index 62b2b2a451c1..c19347de5af9 100644 --- a/editeng/source/editeng/eerdll2.hxx +++ b/editeng/source/editeng/eerdll2.hxx @@ -41,7 +41,7 @@ public: SfxPoolItem** GetDefItems(); rtl::Reference<SvxForbiddenCharactersTable> GetForbiddenCharsTable(); - void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars ) { xForbiddenCharsTable = xForbiddenChars; } + void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> const & xForbiddenChars ) { xForbiddenCharsTable = xForbiddenChars; } css::uno::Reference< css::linguistic2::XLanguageGuessing > GetLanguageGuesser(); }; diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 66b03b8ec697..1798234f246d 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -543,7 +543,7 @@ private: EditTextObject* CreateTextObject(EditSelection aSelection, SfxItemPool*, bool bAllowBigObjects = false, sal_Int32 nBigObjStart = 0); EditSelection InsertTextObject( const EditTextObject&, EditPaM aPaM ); - EditSelection InsertText( css::uno::Reference< css::datatransfer::XTransferable >& rxDataObj, const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial ); + EditSelection InsertText( css::uno::Reference< css::datatransfer::XTransferable > const & rxDataObj, const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial ); void CheckPageOverflow(); @@ -901,7 +901,7 @@ public: css::uno::Reference< css::linguistic2::XSpellChecker1 > GetSpeller(); - void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > &xSpl ) + void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpl ) { xSpeller = xSpl; } const css::uno::Reference< css::linguistic2::XHyphenator >& GetHyphenator() const { return xHyphenator; } diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 843bba6b98f5..0429d7560f0d 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -3453,7 +3453,7 @@ uno::Reference< datatransfer::XTransferable > ImpEditEngine::CreateTransferable( return xDataObj; } -EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransferable >& rxDataObj, const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial ) +EditSelection ImpEditEngine::InsertText( uno::Reference< datatransfer::XTransferable > const & rxDataObj, const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial ) { EditSelection aNewSelection( rPaM ); diff --git a/editeng/source/misc/SvXMLAutoCorrectExport.cxx b/editeng/source/misc/SvXMLAutoCorrectExport.cxx index a89a3742f006..841805b1a102 100644 --- a/editeng/source/misc/SvXMLAutoCorrectExport.cxx +++ b/editeng/source/misc/SvXMLAutoCorrectExport.cxx @@ -27,7 +27,7 @@ using namespace ::com::sun::star; using namespace ::xmloff::token; SvXMLAutoCorrectExport::SvXMLAutoCorrectExport( - const css::uno::Reference< css::uno::XComponentContext > xContext, + const css::uno::Reference< css::uno::XComponentContext > & xContext, const SvxAutocorrWordList * pNewAutocorr_List, const OUString &rFileName, css::uno::Reference< css::xml::sax::XDocumentHandler> &rHandler) @@ -71,7 +71,7 @@ sal_uInt32 SvXMLAutoCorrectExport::exportDoc(enum XMLTokenEnum /*eClass*/) } SvXMLExceptionListExport::SvXMLExceptionListExport( - const css::uno::Reference< css::uno::XComponentContext > xContext, + const css::uno::Reference< css::uno::XComponentContext > & xContext, const SvStringsISortDtor &rNewList, const OUString &rFileName, css::uno::Reference< css::xml::sax::XDocumentHandler> &rHandler) diff --git a/editeng/source/misc/SvXMLAutoCorrectExport.hxx b/editeng/source/misc/SvXMLAutoCorrectExport.hxx index 604fb7e7dcad..5f36818b5ddd 100644 --- a/editeng/source/misc/SvXMLAutoCorrectExport.hxx +++ b/editeng/source/misc/SvXMLAutoCorrectExport.hxx @@ -31,7 +31,7 @@ private: const SvxAutocorrWordList *pAutocorr_List; public: SvXMLAutoCorrectExport( - const css::uno::Reference< css::uno::XComponentContext > xContext, + const css::uno::Reference< css::uno::XComponentContext > & xContext, const SvxAutocorrWordList * pNewAutocorr_List, const OUString &rFileName, css::uno::Reference< css::xml::sax::XDocumentHandler> &rHandler); @@ -51,7 +51,7 @@ private: const SvStringsISortDtor & rList; public: SvXMLExceptionListExport( - const css::uno::Reference< css::uno::XComponentContext > xContext, + const css::uno::Reference< css::uno::XComponentContext > & xContext, const SvStringsISortDtor &rNewList, const OUString &rFileName, css::uno::Reference< css::xml::sax::XDocumentHandler> &rHandler); diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.cxx b/editeng/source/misc/SvXMLAutoCorrectImport.cxx index 776b05cb91d3..9d061416c9c3 100644 --- a/editeng/source/misc/SvXMLAutoCorrectImport.cxx +++ b/editeng/source/misc/SvXMLAutoCorrectImport.cxx @@ -24,7 +24,7 @@ using namespace css; using namespace css::xml::sax; SvXMLAutoCorrectImport::SvXMLAutoCorrectImport( - const uno::Reference< uno::XComponentContext > xContext, + const uno::Reference< uno::XComponentContext > & xContext, SvxAutocorrWordList *pNewAutocorr_List, SvxAutoCorrect &rNewAutoCorrect, const css::uno::Reference < css::embed::XStorage >& rNewStorage) @@ -108,7 +108,7 @@ SvXMLWordContext::~SvXMLWordContext() } SvXMLExceptionListImport::SvXMLExceptionListImport( - const uno::Reference< uno::XComponentContext > xContext, + const uno::Reference< uno::XComponentContext > & xContext, SvStringsISortDtor & rNewList ) : SvXMLImport( xContext, "" ), rList (rNewList) diff --git a/editeng/source/misc/SvXMLAutoCorrectImport.hxx b/editeng/source/misc/SvXMLAutoCorrectImport.hxx index b1432bd5d4c7..b69e42cb2490 100644 --- a/editeng/source/misc/SvXMLAutoCorrectImport.hxx +++ b/editeng/source/misc/SvXMLAutoCorrectImport.hxx @@ -39,7 +39,7 @@ public: css::uno::Reference < css::embed::XStorage > xStorage; SvXMLAutoCorrectImport( - const css::uno::Reference< css::uno::XComponentContext > xContext, + const css::uno::Reference< css::uno::XComponentContext > & xContext, SvxAutocorrWordList *pNewAutocorr_List, SvxAutoCorrect &rNewAutoCorrect, const css::uno::Reference < css::embed::XStorage >& rNewStorage); @@ -86,7 +86,7 @@ public: SvStringsISortDtor &rList; SvXMLExceptionListImport( - const css::uno::Reference< css::uno::XComponentContext > xContext, + const css::uno::Reference< css::uno::XComponentContext > & xContext, SvStringsISortDtor & rNewList ); virtual ~SvXMLExceptionListImport() throw (); diff --git a/editeng/source/misc/splwrap.cxx b/editeng/source/misc/splwrap.cxx index 9c40f395e491..ded82e7a7bd3 100644 --- a/editeng/source/misc/splwrap.cxx +++ b/editeng/source/misc/splwrap.cxx @@ -183,7 +183,7 @@ SvxSpellWrapper::SvxSpellWrapper( vcl::Window* pWn, sal_Int16 SvxSpellWrapper::CheckSpellLang( - Reference< XSpellChecker1 > xSpell, sal_Int16 nLang) + Reference< XSpellChecker1 > const & xSpell, sal_Int16 nLang) { LangCheckState_map_t &rLCS = GetLangCheckState(); @@ -208,7 +208,7 @@ sal_Int16 SvxSpellWrapper::CheckSpellLang( } sal_Int16 SvxSpellWrapper::CheckHyphLang( - Reference< XHyphenator > xHyph, sal_Int16 nLang) + Reference< XHyphenator > const & xHyph, sal_Int16 nLang) { LangCheckState_map_t &rLCS = GetLangCheckState(); diff --git a/editeng/source/misc/unolingu.cxx b/editeng/source/misc/unolingu.cxx index def44d490793..2656e8feae6f 100644 --- a/editeng/source/misc/unolingu.cxx +++ b/editeng/source/misc/unolingu.cxx @@ -744,7 +744,7 @@ uno::Reference< XLinguProperties > SvxGetLinguPropertySet() //TODO: remove argument or provide SvxGetIgnoreAllList with the same one uno::Reference< XDictionary > SvxGetOrCreatePosDic( - uno::Reference< XSearchableDictionaryList > /* xDicList */ ) + uno::Reference< XSearchableDictionaryList > const & /* xDicList */ ) { return LinguMgr::GetStandardDic(); } diff --git a/editeng/source/outliner/overflowingtxt.cxx b/editeng/source/outliner/overflowingtxt.cxx index 1b98adea6e99..c053605a6484 100644 --- a/editeng/source/outliner/overflowingtxt.cxx +++ b/editeng/source/outliner/overflowingtxt.cxx @@ -33,7 +33,7 @@ OutlinerParaObject *TextChainingUtils::JuxtaposeParaObject( - css::uno::Reference< css::datatransfer::XTransferable > xOverflowingContent, + css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent, Outliner *pOutl, OutlinerParaObject *pNextPObj) { @@ -68,7 +68,7 @@ OutlinerParaObject *TextChainingUtils::JuxtaposeParaObject( } OutlinerParaObject *TextChainingUtils::DeeplyMergeParaObject( - css::uno::Reference< css::datatransfer::XTransferable > xOverflowingContent, + css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent, Outliner *pOutl, OutlinerParaObject *pNextPObj) { @@ -105,7 +105,7 @@ css::uno::Reference< css::datatransfer::XTransferable > TextChainingUtils::Creat // class OverflowingText -OverflowingText::OverflowingText(css::uno::Reference< css::datatransfer::XTransferable > xOverflowingContent) : +OverflowingText::OverflowingText(css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent) : mxOverflowingContent(xOverflowingContent) { diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index a053a7e08edf..0cf844f73b5a 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -59,7 +59,7 @@ static rtl_TextEncoding lcl_GetDefaultTextEncodingForRTF() // -------------- Methods -------------------- SvxRTFParser::SvxRTFParser( SfxItemPool& rPool, SvStream& rIn, - uno::Reference<document::XDocumentProperties> i_xDocProps ) + uno::Reference<document::XDocumentProperties> const & i_xDocProps ) : SvRTFParser( rIn, 5 ) , aPlainMap(rPool) , aPardMap(rPool) diff --git a/editeng/source/uno/UnoForbiddenCharsTable.cxx b/editeng/source/uno/UnoForbiddenCharsTable.cxx index 0e39bc7cb9e3..31d30d5471fa 100644 --- a/editeng/source/uno/UnoForbiddenCharsTable.cxx +++ b/editeng/source/uno/UnoForbiddenCharsTable.cxx @@ -30,7 +30,7 @@ using namespace ::com::sun::star::lang; using namespace ::com::sun::star::i18n; using namespace ::cppu; -SvxUnoForbiddenCharsTable::SvxUnoForbiddenCharsTable(::rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars) : +SvxUnoForbiddenCharsTable::SvxUnoForbiddenCharsTable(::rtl::Reference<SvxForbiddenCharactersTable> const & xForbiddenChars) : mxForbiddenChars( xForbiddenChars ) { } diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index 1ae11c5d8337..6a26bcddf741 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -291,7 +291,7 @@ SvxUnoTextField::SvxUnoTextField( sal_Int32 nServiceId ) throw() } } -SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > xAnchor, const OUString& rPresentation, const SvxFieldData* pData ) throw() +SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > const & xAnchor, const OUString& rPresentation, const SvxFieldData* pData ) throw() : OComponentHelper( getMutex() ) , mxAnchor( xAnchor ) , mpPropSet(nullptr) diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx index a2075e3958e2..f46599e140ee 100644 --- a/editeng/source/uno/unonrule.cxx +++ b/editeng/source/uno/unonrule.cxx @@ -469,7 +469,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex(const Sequence<beans::Propert maRule.SetLevel( (sal_uInt16)nIndex, aFmt ); } -const SvxNumRule& SvxGetNumRule( Reference< XIndexReplace > xRule ) throw( IllegalArgumentException ) +const SvxNumRule& SvxGetNumRule( Reference< XIndexReplace > const & xRule ) throw( IllegalArgumentException ) { SvxUnoNumberingRules* pRule = SvxUnoNumberingRules::getImplementation( xRule ); if( pRule == nullptr ) diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index 91a8ad10d2dc..02d73e803acf 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -1664,7 +1664,7 @@ SvxUnoTextBase::SvxUnoTextBase( const SvxItemPropertySet* _pSet ) throw() { } -SvxUnoTextBase::SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > xParent ) throw() +SvxUnoTextBase::SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > const & xParent ) throw() : SvxUnoTextRangeBase( pSource, _pSet ) { xParentText = xParent; @@ -2291,7 +2291,7 @@ SvxUnoText::SvxUnoText( const SvxItemPropertySet* _pSet ) throw() { } -SvxUnoText::SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > xParent ) throw() +SvxUnoText::SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, uno::Reference < text::XText > const & xParent ) throw() : SvxUnoTextBase( pSource, _pSet, xParent ) { } |