diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-28 09:58:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-28 12:15:10 +0100 |
commit | b9183166214c0f461b6fefb34bbf4a57ea878bdf (patch) | |
tree | 0627d5f2c435c0e214c4c49f161f753eb5cce50d /include/editeng/editeng.hxx | |
parent | Firebird: use 32 bit (diff) | |
download | core-b9183166214c0f461b6fefb34bbf4a57ea878bdf.tar.gz core-b9183166214c0f461b6fefb34bbf4a57ea878bdf.zip |
loplugin:passstuffbyref improved return in editeng
Change-Id: I6aba5b79e588f28529052ddb30ad51807d73cfe5
Reviewed-on: https://gerrit.libreoffice.org/47120
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/editeng.hxx')
-rw-r--r-- | include/editeng/editeng.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index b426c4cdae0b..c47c281f22bb 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -212,13 +212,13 @@ public: OutputDevice* GetRefDevice() const; void SetRefMapMode( const MapMode& rMapMode ); - MapMode GetRefMapMode(); + MapMode const & GetRefMapMode(); void SetUpdateMode( bool bUpdate ); bool GetUpdateMode() const; void SetBackgroundColor( const Color& rColor ); - Color GetBackgroundColor() const; + Color const & GetBackgroundColor() const; Color GetAutoColor() const; void EnableAutoColor( bool b ); void ForceAutoColor( bool b ); @@ -353,7 +353,7 @@ public: bool IsModified() const; void SetModifyHdl( const Link<LinkParamNone*,void>& rLink ); - Link<LinkParamNone*,void> GetModifyHdl() const; + Link<LinkParamNone*,void> const & GetModifyHdl() const; bool IsInSelectionMode() const; @@ -375,10 +375,10 @@ public: void Write( SvStream& rOutput, EETextFormat ); void SetStatusEventHdl( const Link<EditStatus&,void>& rLink ); - Link<EditStatus&,void> GetStatusEventHdl() const; + Link<EditStatus&,void> const & GetStatusEventHdl() const; void SetNotifyHdl( const Link<EENotify&,void>& rLink ); - Link<EENotify&,void> GetNotifyHdl() const; + Link<EENotify&,void> const & GetNotifyHdl() const; void SetRtfImportHdl( const Link<RtfImportInfo&,void>& rLink ); const Link<RtfImportInfo&,void>& GetRtfImportHdl() const; @@ -424,7 +424,7 @@ public: void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpeller ); css::uno::Reference< - css::linguistic2::XSpellChecker1 > + css::linguistic2::XSpellChecker1 > const & GetSpeller(); void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator > const & xHyph ); @@ -525,11 +525,11 @@ public: static bool HasValidData( const css::uno::Reference< css::datatransfer::XTransferable >& rTransferable ); /** sets a link that is called at the beginning of a drag operation at an edit view */ void SetBeginDropHdl( const Link<EditView*,void>& rLink ); - Link<EditView*,void> GetBeginDropHdl() const; + Link<EditView*,void> const & GetBeginDropHdl() const; /** sets a link that is called at the end of a drag operation at an edit view */ void SetEndDropHdl( const Link<EditView*,void>& rLink ); - Link<EditView*,void> GetEndDropHdl() const; + Link<EditView*,void> const & GetEndDropHdl() const; /// specifies if auto-correction should capitalize the first word or not (default is on) void SetFirstWordCapitalization( bool bCapitalize ); |