diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 15:56:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-07-07 18:59:55 +0200 |
commit | 269a888905bcee0b773b1206766e838b211f82a2 (patch) | |
tree | c95b456af01712df6c783cc27e5035b8752e72e0 /cui/source/inc | |
parent | e0341d9be8817650482a4ff70006977fb00ef4cc (diff) |
loplugin:passstuffbyref also for {css::uno,rtl}::Reference
Change-Id: I51957af512cae8ec838fd9b14bd576356edd2611
Diffstat (limited to 'cui/source/inc')
-rw-r--r-- | cui/source/inc/cfg.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/cfgutil.hxx | 4 | ||||
-rw-r--r-- | cui/source/inc/cuitabarea.hxx | 32 | ||||
-rw-r--r-- | cui/source/inc/cuitabline.hxx | 16 | ||||
-rw-r--r-- | cui/source/inc/macropg.hxx | 2 | ||||
-rw-r--r-- | cui/source/inc/selector.hxx | 4 | ||||
-rw-r--r-- | cui/source/inc/thesdlg.hxx | 2 |
7 files changed, 31 insertions, 31 deletions
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx index b9ca0d55b7cd..e766f130568a 100644 --- a/cui/source/inc/cfg.hxx +++ b/cui/source/inc/cfg.hxx @@ -304,7 +304,7 @@ public: void SetVisible( bool b ) { bIsVisible = b; } bool IsVisible() const { return bIsVisible; } - void SetBackupGraphic( css::uno::Reference< css::graphic::XGraphic > graphic ) + void SetBackupGraphic( css::uno::Reference< css::graphic::XGraphic > const & graphic ) { xBackupGraphic = graphic; } const css::uno::Reference< css::graphic::XGraphic >& GetBackupGraphic() diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx index 7701291910d1..628343c3d40a 100644 --- a/cui/source/inc/cfgutil.hxx +++ b/cui/source/inc/cfgutil.hxx @@ -135,12 +135,12 @@ class SfxConfigGroupListBox : public SvTreeListBox Image GetImage( const css::uno::Reference< css::script::browse::XBrowseNode >& node, - css::uno::Reference< css::uno::XComponentContext > xCtx, + css::uno::Reference< css::uno::XComponentContext > const & xCtx, bool bIsRootNode ); static css::uno::Reference< css::uno::XInterface > getDocumentModel( - css::uno::Reference< css::uno::XComponentContext >& xCtx, + css::uno::Reference< css::uno::XComponentContext > const & xCtx, OUString& docName ); diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx index fb8625f49b7e..aa82276fd7ab 100644 --- a/cui/source/inc/cuitabarea.hxx +++ b/cui/source/inc/cuitabarea.hxx @@ -84,26 +84,26 @@ protected: public: SvxAreaTabDialog( vcl::Window* pParent, const SfxItemSet* pAttr, SdrModel* pModel, bool bShadow ); - void SetNewColorList( XColorListRef pColorList ) + void SetNewColorList( XColorListRef const & pColorList ) { mpNewColorList = pColorList; } const XColorListRef& GetNewColorList() const { return mpNewColorList; } const XColorListRef& GetColorList() const { return mpColorList; } - void SetNewGradientList( XGradientListRef pGrdLst) + void SetNewGradientList( XGradientListRef const & pGrdLst) { mpNewGradientList = pGrdLst; } const XGradientListRef& GetNewGradientList() const { return mpNewGradientList; } - void SetNewHatchingList( XHatchListRef pHtchLst) + void SetNewHatchingList( XHatchListRef const & pHtchLst) { mpNewHatchingList = pHtchLst; } const XHatchListRef& GetNewHatchingList() const { return mpNewHatchingList; } - void SetNewBitmapList( XBitmapListRef pBmpLst) + void SetNewBitmapList( XBitmapListRef const & pBmpLst) { mpNewBitmapList = pBmpLst; } const XBitmapListRef& GetNewBitmapList() const { return mpNewBitmapList; } - void SetNewPatternList( XPatternListRef pPtrnLst ) + void SetNewPatternList( XPatternListRef const & pPtrnLst ) { mpNewPatternList = pPtrnLst; } const XPatternListRef& GetNewPatternList() const { return mpNewPatternList; } }; @@ -303,12 +303,12 @@ public: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; - void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } - void SetGradientList( XGradientListRef pGrdLst) + void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; } + void SetGradientList( XGradientListRef const & pGrdLst) { m_pGradientList = pGrdLst; } - void SetHatchingList( XHatchListRef pHtchLst) + void SetHatchingList( XHatchListRef const & pHtchLst) { m_pHatchingList = pHtchLst; } - void SetBitmapList( XBitmapListRef pBmpLst) { m_pBitmapList = pBmpLst; } + void SetBitmapList( XBitmapListRef const & pBmpLst) { m_pBitmapList = pBmpLst; } void SetPageType( sal_uInt16 nInType ) { m_nPageType = nInType; } void SetDlgType( sal_uInt16 nInType ) { m_nDlgType = nInType; } @@ -369,7 +369,7 @@ public: virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; - void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } + void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; } void SetPageType( sal_uInt16 nInType ) { m_nPageType = nInType; } void SetDlgType( sal_uInt16 nInType ) { m_nDlgType = nInType; } void SetAreaTP( bool* pIn ) { m_pbAreaTP = pIn; } @@ -452,8 +452,8 @@ public: virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; - void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } - void SetGradientList( XGradientListRef pGrdLst) + void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; } + void SetGradientList( XGradientListRef const & pGrdLst) { m_pGradientList = pGrdLst; } void SetPageType( sal_uInt16* pInType ) { m_pPageType = pInType; } @@ -534,8 +534,8 @@ public: virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; - void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } - void SetHatchingList( XHatchListRef pHtchLst) + void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; } + void SetHatchingList( XHatchListRef const & pHtchLst) { m_pHatchingList = pHtchLst; } void SetPageType( sal_uInt16* pInType ) { m_pPageType = pInType; } @@ -616,8 +616,8 @@ public: virtual void PointChanged( vcl::Window* pWindow, RECT_POINT eRP ) override; - void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } - void SetPatternList( XPatternListRef pPatternList) { m_pPatternList = pPatternList; } + void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; } + void SetPatternList( XPatternListRef const & pPatternList) { m_pPatternList = pPatternList; } void SetPageType( sal_uInt16* pInType ) { m_pPageType = pInType; } void SetDlgType( sal_uInt16 nInType ) { m_nDlgType = nInType; } diff --git a/cui/source/inc/cuitabline.hxx b/cui/source/inc/cuitabline.hxx index 19d00eb0baff..a3df4fb20522 100644 --- a/cui/source/inc/cuitabline.hxx +++ b/cui/source/inc/cuitabline.hxx @@ -66,15 +66,15 @@ public: SdrModel* pModel, const SdrObject* pObj = nullptr, bool bHasObj = true ); - void SetNewDashList( XDashListRef pInLst) + void SetNewDashList( XDashListRef const & pInLst) { pNewDashList = pInLst; } const XDashListRef& GetNewDashList() const { return pNewDashList; } - void SetNewLineEndList( XLineEndListRef pInLst) + void SetNewLineEndList( XLineEndListRef const & pInLst) { pNewLineEndList = pInLst; } const XLineEndListRef& GetNewLineEndList() const { return pNewLineEndList; } - void SetNewColorList( XColorListRef pColTab ) { mpNewColorList = pColTab; } + void SetNewColorList( XColorListRef const & pColTab ) { mpNewColorList = pColTab; } const XColorListRef& GetNewColorList() const { return mpNewColorList; } const XColorListRef& GetColorList() const { return pColorList; } }; @@ -219,9 +219,9 @@ public: virtual void FillUserData() override; - void SetColorList( XColorListRef pColorList ) { m_pColorList = pColorList; } - void SetDashList( XDashListRef pDshLst ) { m_pDashList = pDshLst; } - void SetLineEndList( XLineEndListRef pLneEndLst) { m_pLineEndList = pLneEndLst; } + void SetColorList( XColorListRef const & pColorList ) { m_pColorList = pColorList; } + void SetDashList( XDashListRef const & pDshLst ) { m_pDashList = pDshLst; } + void SetLineEndList( XLineEndListRef const & pLneEndLst) { m_pLineEndList = pLneEndLst; } void SetObjSelected( bool bHasObj ) { m_bObjSelected = bHasObj; } void SetPageType( sal_uInt16 nInType ) { m_nPageType = nInType; } @@ -314,7 +314,7 @@ public: virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; - void SetDashList( XDashListRef pDshLst ) { pDashList = pDshLst; } + void SetDashList( XDashListRef const & pDshLst ) { pDashList = pDshLst; } void SetObjSelected( bool bHasObj ) { bObjSelected = bHasObj; } void SetPageType( sal_uInt16* pInType ) { pPageType = pInType; } @@ -384,7 +384,7 @@ public: virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; - void SetLineEndList( XLineEndListRef pInList ) { pLineEndList = pInList; } + void SetLineEndList( XLineEndListRef const & pInList ) { pLineEndList = pInList; } void SetPolyObj( const SdrObject* pObj ) { pPolyObj = pObj; } void SetObjSelected( bool bHasObj ) { bObjSelected = bHasObj; } diff --git a/cui/source/inc/macropg.hxx b/cui/source/inc/macropg.hxx index b5eb5ab5ceba..256094d2ca2b 100644 --- a/cui/source/inc/macropg.hxx +++ b/cui/source/inc/macropg.hxx @@ -103,7 +103,7 @@ public: vcl::Window* pParent, const css::uno::Reference< css::frame::XFrame >& _rxDocumentFrame, const SfxItemSet& rSet, - css::uno::Reference< css::container::XNameReplace > xNameReplace, + css::uno::Reference< css::container::XNameReplace > const & xNameReplace, sal_uInt16 nSelectedIndex ); }; diff --git a/cui/source/inc/selector.hxx b/cui/source/inc/selector.hxx index cb5dd4295fdf..a5fa1464cf54 100644 --- a/cui/source/inc/selector.hxx +++ b/cui/source/inc/selector.hxx @@ -136,12 +136,12 @@ class SvxConfigGroupListBox : public SvTreeListBox OUString m_sProdMacros; Image GetImage( const css::uno::Reference< css::script::browse::XBrowseNode >& node, - css::uno::Reference< css::uno::XComponentContext > xCtx, + css::uno::Reference< css::uno::XComponentContext > const & xCtx, bool bIsRootNode ); static css::uno::Reference< css::uno::XInterface > getDocumentModel( - css::uno::Reference< css::uno::XComponentContext >& xCtx, + css::uno::Reference< css::uno::XComponentContext > const & xCtx, OUString& docName ); diff --git a/cui/source/inc/thesdlg.hxx b/cui/source/inc/thesdlg.hxx index 925ccf9c8675..6f338eb1bcc4 100644 --- a/cui/source/inc/thesdlg.hxx +++ b/cui/source/inc/thesdlg.hxx @@ -161,7 +161,7 @@ public: public: SvxThesaurusDialog( vcl::Window* pParent, - css::uno::Reference< css::linguistic2::XThesaurus > xThesaurus, + css::uno::Reference< css::linguistic2::XThesaurus > const & xThesaurus, const OUString &rWord, LanguageType nLanguage ); void SetWindowTitle( LanguageType nLanguage ); |