loplugin:passstuffbyref in svl

Change-Id: I1434d96ae800d8e155262831472cf632d640b4c5
This commit is contained in:
Noel Grandin
2016-04-13 11:29:29 +02:00
parent 523036daad
commit fe8896bab0
5 changed files with 5 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ public:
void SetStyle( sal_uInt16 nStyle ) { _nStyle = nStyle; }
const OUString& GetBitmapURL() const { return _aURL; }
Color GetColor() const { return _nColor; }
const Color& GetColor() const { return _nColor; }
sal_uInt16 GetStyle() const { return _nStyle; }
};

View File

@@ -36,7 +36,7 @@ public:
virtual bool operator==( const SfxPoolItem& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
SvGlobalName GetValue() const { return m_aName; }
const SvGlobalName& GetValue() const { return m_aName; }
virtual bool PutValue ( const css::uno::Any& rVal,
sal_uInt8 nMemberId ) override;

View File

@@ -914,7 +914,7 @@ public:
// new format codes are appended.
void ReplaceSystemCL( LanguageType eOldLanguage );
css::uno::Reference<css::uno::XComponentContext> GetComponentContext() const;
const css::uno::Reference<css::uno::XComponentContext>& GetComponentContext() const;
//! The following method is not to be used from outside but must be
//! public for the InputScanner.

View File

@@ -124,7 +124,7 @@ public:
return *this;
}
OUString GetUserName() const
const OUString& GetUserName() const
{
return m_aName;
}

View File

@@ -516,7 +516,7 @@ void SvNumberFormatter::ReplaceSystemCL( LanguageType eOldLanguage )
ImpGenerateAdditionalFormats( nCLOffset, aNumberFormatCode, true );
}
css::uno::Reference<css::uno::XComponentContext> SvNumberFormatter::GetComponentContext() const
const css::uno::Reference<css::uno::XComponentContext>& SvNumberFormatter::GetComponentContext() const
{
return m_xContext;
}