loplugin:passstuffbyref also for {css::uno,rtl}::Reference

Change-Id: I51957af512cae8ec838fd9b14bd576356edd2611
This commit is contained in:
Stephan Bergmann
2016-07-07 15:56:37 +02:00
parent e0341d9be8
commit 269a888905
13 changed files with 39 additions and 39 deletions

View File

@@ -701,7 +701,7 @@ void SfxConfigGroupListBox::Init(const css::uno::Reference< css::uno::XComponent
Image SfxConfigGroupListBox::GetImage(
const Reference< browse::XBrowseNode >& node,
Reference< XComponentContext > xCtx,
Reference< XComponentContext > const & xCtx,
bool bIsRootNode
)
{
@@ -764,7 +764,7 @@ Image SfxConfigGroupListBox::GetImage(
}
Reference< XInterface >
SfxConfigGroupListBox::getDocumentModel( Reference< XComponentContext >& xCtx, OUString& docName )
SfxConfigGroupListBox::getDocumentModel( Reference< XComponentContext > const & xCtx, OUString& docName )
{
Reference< XInterface > xModel;
Reference< frame::XDesktop2 > desktop = frame::Desktop::create( xCtx );

View File

@@ -813,7 +813,7 @@ Any SvxMacroTabPage_::GetPropsByName( const OUString& eventName, EventsHash& eve
SvxMacroTabPage::SvxMacroTabPage(vcl::Window* pParent,
const Reference< frame::XFrame >& _rxDocumentFrame,
const SfxItemSet& rSet,
Reference< container::XNameReplace > xNameReplace,
Reference< container::XNameReplace > const & xNameReplace,
sal_uInt16 nSelectedIndex)
: SvxMacroTabPage_(pParent, "MacroAssignPage", "cui/ui/macroassignpage.ui", rSet)
{

View File

@@ -556,7 +556,7 @@ void SvxConfigGroupListBox::Init(bool bShowSlots, const Reference< frame::XFrame
Image SvxConfigGroupListBox::GetImage(
const Reference< browse::XBrowseNode >& node,
Reference< XComponentContext > xCtx,
Reference< XComponentContext > const & xCtx,
bool bIsRootNode
)
{
@@ -617,7 +617,7 @@ Image SvxConfigGroupListBox::GetImage(
Reference< XInterface >
SvxConfigGroupListBox::getDocumentModel(
Reference< XComponentContext >& xCtx, OUString& docName )
Reference< XComponentContext > const & xCtx, OUString& docName )
{
Reference< XInterface > xModel;
Reference< frame::XDesktop2 > desktop = Desktop::create(xCtx);

View File

@@ -48,7 +48,7 @@ struct SpellErrorDescription
const OUString& rText,
const css::lang::Locale& rLocale,
const css::uno::Sequence< OUString >& rSuggestions,
css::uno::Reference< css::linguistic2::XProofreader > rxGrammarChecker,
css::uno::Reference< css::linguistic2::XProofreader > const & rxGrammarChecker,
const OUString* pDialogTitle = nullptr,
const OUString* pExplanation = nullptr,
const OUString* pRuleId = nullptr,

View File

@@ -440,7 +440,7 @@ IMPL_STATIC_LINK_TYPED( SvxThesaurusDialog, SelectFirstHdl_Impl, void *, p, void
SvxThesaurusDialog::SvxThesaurusDialog(
vcl::Window* pParent,
uno::Reference< linguistic2::XThesaurus > xThes,
uno::Reference< linguistic2::XThesaurus > const & xThes,
const OUString &rWord,
LanguageType nLanguage)
: SvxStandardDialog(pParent, "ThesaurusDialog", "cui/ui/thesaurus.ui")

View File

@@ -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()

View File

@@ -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
);

View File

@@ -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; }

View File

@@ -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; }

View File

@@ -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
);
};

View File

@@ -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
);

View File

@@ -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 );

View File

@@ -2521,7 +2521,7 @@ struct ImplSmartTagLBUserData
sal_Int32 mnSmartTagIdx;
ImplSmartTagLBUserData( const OUString& rSmartTagType,
uno::Reference< smarttags::XSmartTagRecognizer > xRec,
uno::Reference< smarttags::XSmartTagRecognizer > const & xRec,
sal_Int32 nSmartTagIdx ) :
maSmartTagType( rSmartTagType ),
mxRec( xRec ),