diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 11:22:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-13 13:27:52 +0200 |
commit | e133f3eb0ff6d03a5a2df38627793b1f1aee04c6 (patch) | |
tree | 4c7ad45581d0294b39fae491441ea76374754bfd /include/filter | |
parent | 27b6782f5b17167e4258656aef9aef34a10699db (diff) |
loplugin:passstuffbyref in filter
Change-Id: I68e69620d4725aac66ded11e7d316caf03098249
Diffstat (limited to 'include/filter')
-rw-r--r-- | include/filter/msfilter/escherex.hxx | 2 | ||||
-rw-r--r-- | include/filter/msfilter/mstoolbar.hxx | 4 | ||||
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx index db70cc880749..f870789992e7 100644 --- a/include/filter/msfilter/escherex.hxx +++ b/include/filter/msfilter/escherex.hxx @@ -1210,7 +1210,7 @@ public: void InsertAtPersistOffset( sal_uInt32 nKey, sal_uInt32 nValue ); // nValue is being inserted into the Stream where it's appropriate (overwrite modus), without that the // current StreamPosition changes void SetEditAs( const OUString& rEditAs ); - rtl::OUString GetEditAs() { return mEditAs; } + const OUString& GetEditAs() { return mEditAs; } SvStream& GetStream() const { return *mpOutStrm; } sal_uLong GetStreamPos() const { return mpOutStrm->Tell(); } diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx index c6b3920e1966..6774c6cc675a 100644 --- a/include/filter/msfilter/mstoolbar.hxx +++ b/include/filter/msfilter/mstoolbar.hxx @@ -52,7 +52,7 @@ public: void setMSOCommandMap( MSOCommandConvertor* pCnvtr ) { pMSOCmdConvertor.reset( pCnvtr ); } css::uno::Reference< css::ui::XUIConfigurationManager > getCfgManager(); - css::uno::Reference< css::ui::XUIConfigurationManager > getAppCfgManager() { return m_xAppCfgMgr;} + const css::uno::Reference< css::ui::XUIConfigurationManager >& getAppCfgManager() { return m_xAppCfgMgr;} static css::uno::Any createCommandFromMacro( const OUString& sCmd ); @@ -108,7 +108,7 @@ public: WString(){}; virtual ~WString(){}; bool Read(SvStream &rS) override; - OUString getString(){ return sString; } + const OUString& getString(){ return sString; } }; class MSFILTER_DLLPUBLIC TBCExtraInfo : public TBBase diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index 2f04a8e0453e..2daa00e05e89 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -189,7 +189,7 @@ struct MSFILTER_DLLPUBLIC PptDocumentAtom public: - static Size GetPageSize( const Size& rSiz ); + static const Size& GetPageSize( const Size& rSiz ); Size GetSlidesPageSize() const { return GetPageSize( aSlidesPageSize ); } Size GetNotesPageSize() const { return GetPageSize( aNotesPageSize ); } |