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 /include | |
parent | cb53d9c4a2b0e57871567c3c819bb349d12542a6 (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I5bb3c63790cb153c0d6f57a681ec6dda71d482be
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/UnoForbiddenCharsTable.hxx | 2 | ||||
-rw-r--r-- | include/editeng/editeng.hxx | 4 | ||||
-rw-r--r-- | include/editeng/editview.hxx | 2 | ||||
-rw-r--r-- | include/editeng/overflowingtxt.hxx | 6 | ||||
-rw-r--r-- | include/editeng/splwrap.hxx | 4 | ||||
-rw-r--r-- | include/editeng/svxrtf.hxx | 2 | ||||
-rw-r--r-- | include/editeng/unofield.hxx | 2 | ||||
-rw-r--r-- | include/editeng/unolingu.hxx | 2 | ||||
-rw-r--r-- | include/editeng/unonrule.hxx | 2 | ||||
-rw-r--r-- | include/editeng/unotext.hxx | 4 |
10 files changed, 15 insertions, 15 deletions
diff --git a/include/editeng/UnoForbiddenCharsTable.hxx b/include/editeng/UnoForbiddenCharsTable.hxx index defcb746bb56..1d58ca3230b9 100644 --- a/include/editeng/UnoForbiddenCharsTable.hxx +++ b/include/editeng/UnoForbiddenCharsTable.hxx @@ -40,7 +40,7 @@ protected: rtl::Reference<SvxForbiddenCharactersTable> mxForbiddenChars; public: - SvxUnoForbiddenCharsTable(rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars); + SvxUnoForbiddenCharsTable(rtl::Reference<SvxForbiddenCharactersTable> const & xForbiddenChars); virtual ~SvxUnoForbiddenCharsTable(); // XForbiddenCharacters diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index e5b5e9465b66..a20c996be8bc 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -172,7 +172,7 @@ private: CreateTransferable(const EditSelection& rSelection); EDITENG_DLLPRIVATE EditSelection InsertText( - css::uno::Reference<css::datatransfer::XTransferable >& rxDataObj, + css::uno::Reference<css::datatransfer::XTransferable > const & rxDataObj, const OUString& rBaseURL, const EditPaM& rPaM, bool bUseSpecial); EDITENG_DLLPRIVATE EditPaM EndOfWord(const EditPaM& rPaM); @@ -415,7 +415,7 @@ public: void EraseVirtualDevice(); void SetSpeller( css::uno::Reference< - css::linguistic2::XSpellChecker1 > &xSpeller ); + css::linguistic2::XSpellChecker1 > const &xSpeller ); css::uno::Reference< css::linguistic2::XSpellChecker1 > GetSpeller(); diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx index 829181a8c7d0..f609aa679a25 100644 --- a/include/editeng/editview.hxx +++ b/include/editeng/editview.hxx @@ -191,7 +191,7 @@ public: EditTextObject* CreateTextObject(); void InsertText( const EditTextObject& rTextObject ); - void InsertText( css::uno::Reference< css::datatransfer::XTransferable > xDataObj, const OUString& rBaseURL, bool bUseSpecial ); + void InsertText( css::uno::Reference< css::datatransfer::XTransferable > const & xDataObj, const OUString& rBaseURL, bool bUseSpecial ); css::uno::Reference< css::datatransfer::XTransferable > GetTransferable(); diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx index 27141dfda504..f7410ab40b6f 100644 --- a/include/editeng/overflowingtxt.hxx +++ b/include/editeng/overflowingtxt.hxx @@ -51,11 +51,11 @@ public: static css::uno::Reference< css::datatransfer::XTransferable> CreateTransferableFromText(Outliner *); static OutlinerParaObject *JuxtaposeParaObject( - css::uno::Reference< css::datatransfer::XTransferable > xOverflowingContent, + css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent, Outliner *, OutlinerParaObject *); static OutlinerParaObject *DeeplyMergeParaObject( - css::uno::Reference< css::datatransfer::XTransferable > xOverflowingContent, + css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent, Outliner *, OutlinerParaObject *); }; @@ -74,7 +74,7 @@ public: private: friend class Outliner; - OverflowingText(css::uno::Reference< css::datatransfer::XTransferable > xOverflowingContent); + OverflowingText(css::uno::Reference< css::datatransfer::XTransferable > const & xOverflowingContent); css::uno::Reference< css::datatransfer::XTransferable > mxOverflowingContent; }; diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx index 1c0bb3bbe5b5..b6b651ae64f4 100644 --- a/include/editeng/splwrap.hxx +++ b/include/editeng/splwrap.hxx @@ -82,10 +82,10 @@ public: virtual ~SvxSpellWrapper(); static sal_Int16 CheckSpellLang( - css::uno::Reference< css::linguistic2::XSpellChecker1 > xSpell, + css::uno::Reference< css::linguistic2::XSpellChecker1 > const & xSpell, sal_Int16 nLang ); static sal_Int16 CheckHyphLang( - css::uno::Reference< css::linguistic2::XHyphenator > xHyph, + css::uno::Reference< css::linguistic2::XHyphenator >const & xHyph, sal_Int16 nLang ); static void ShowLanguageErrors(); diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx index 45dd362455ad..2a941617be17 100644 --- a/include/editeng/svxrtf.hxx +++ b/include/editeng/svxrtf.hxx @@ -288,7 +288,7 @@ protected: SvxRTFParser( SfxItemPool& rAttrPool, SvStream& rIn, - css::uno::Reference< css::document::XDocumentProperties> i_xDocProps ); + css::uno::Reference< css::document::XDocumentProperties> const & i_xDocProps ); virtual ~SvxRTFParser(); void SetNewDoc( bool bFlag ) { bNewDoc = bFlag; } diff --git a/include/editeng/unofield.hxx b/include/editeng/unofield.hxx index 3bfd691ac53d..a0db520332f4 100644 --- a/include/editeng/unofield.hxx +++ b/include/editeng/unofield.hxx @@ -59,7 +59,7 @@ protected: public: SvxUnoTextField( sal_Int32 nServiceId ) throw(); - SvxUnoTextField( css::uno::Reference< css::text::XTextRange > xAnchor, const OUString& rPresentation, const SvxFieldData* pFieldData ) throw(); + SvxUnoTextField( css::uno::Reference< css::text::XTextRange > const & xAnchor, const OUString& rPresentation, const SvxFieldData* pFieldData ) throw(); virtual ~SvxUnoTextField() throw(); // Internal diff --git a/include/editeng/unolingu.hxx b/include/editeng/unolingu.hxx index 761d10995c0c..20e3b2e35ea9 100644 --- a/include/editeng/unolingu.hxx +++ b/include/editeng/unolingu.hxx @@ -140,7 +140,7 @@ EDITENG_DLLPUBLIC css::uno::Reference< //TODO: remove argument or provide SvxGetIgnoreAllList with the same one EDITENG_DLLPUBLIC css::uno::Reference< css::linguistic2::XDictionary > SvxGetOrCreatePosDic( - css::uno::Reference< css::linguistic2::XSearchableDictionaryList > xDicList ); + css::uno::Reference< css::linguistic2::XSearchableDictionaryList > const & xDicList ); EDITENG_DLLPUBLIC css::uno::Reference< css::linguistic2::XDictionary > SvxGetIgnoreAllList(); EDITENG_DLLPUBLIC css::uno::Reference< diff --git a/include/editeng/unonrule.hxx b/include/editeng/unonrule.hxx index 781eb3befa68..d77883604a75 100644 --- a/include/editeng/unonrule.hxx +++ b/include/editeng/unonrule.hxx @@ -33,7 +33,7 @@ EDITENG_DLLPUBLIC css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw(); EDITENG_DLLPUBLIC css::uno::Reference< css::container::XIndexReplace > SvxCreateNumRule() throw(); -const SvxNumRule& SvxGetNumRule( css::uno::Reference< css::container::XIndexReplace > xRule ) throw( css::lang::IllegalArgumentException ); +const SvxNumRule& SvxGetNumRule( css::uno::Reference< css::container::XIndexReplace > const & xRule ) throw( css::lang::IllegalArgumentException ); EDITENG_DLLPUBLIC css::uno::Reference< css::ucb::XAnyCompare > SvxCreateNumRuleCompare() throw(); class SvxUnoNumberingRules : public ::cppu::WeakAggImplHelper5< css::container::XIndexReplace, css::ucb::XAnyCompare, diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx index b3336d06bb9c..6a30b08a9a9b 100644 --- a/include/editeng/unotext.hxx +++ b/include/editeng/unotext.hxx @@ -393,7 +393,7 @@ protected: css::uno::Reference< css::text::XText > xParentText; SvxUnoTextBase( const SvxItemPropertySet* _pSet ) throw(); - SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > xParent ) throw(); + SvxUnoTextBase( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > const & xParent ) throw(); SvxUnoTextBase( const SvxUnoTextBase& rText ) throw(); virtual ~SvxUnoTextBase() throw(); @@ -462,7 +462,7 @@ class EDITENG_DLLPUBLIC SvxUnoText : public SvxUnoTextBase, { public: SvxUnoText( const SvxItemPropertySet* _pSet ) throw(); - SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > xParent ) throw(); + SvxUnoText( const SvxEditSource* pSource, const SvxItemPropertySet* _pSet, css::uno::Reference < css::text::XText > const & xParent ) throw(); SvxUnoText( const SvxUnoText& rText ) throw(); virtual ~SvxUnoText() throw(); |