summaryrefslogtreecommitdiff
path: root/editeng/source/editeng/impedit.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 11:22:04 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:52 +0200
commit27b6782f5b17167e4258656aef9aef34a10699db (patch)
tree73a2106f31983fede173db2fb090a14468091a96 /editeng/source/editeng/impedit.hxx
parentecebf3bd99b100382f4bc9242ca8e882f83b275a (diff)
loplugin:passstuffbyref in editeng
Change-Id: I11deb7c73a1c160d587d74c9851ff10c875c972b
Diffstat (limited to 'editeng/source/editeng/impedit.hxx')
-rw-r--r--editeng/source/editeng/impedit.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index fa70b1e61bb7..a06a593b0539 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -650,7 +650,7 @@ private:
const ParaPortion* GetNextVisPortion( const ParaPortion* pCurPortion ) const;
void SetBackgroundColor( const Color& rColor ) { maBackgroundColor = rColor; }
- Color GetBackgroundColor() const { return maBackgroundColor; }
+ const Color& GetBackgroundColor() const { return maBackgroundColor; }
long CalcVertLineSpacing(Point& rStartPos) const;
@@ -832,7 +832,7 @@ public:
bool IsModified() const { return aEditDoc.IsModified(); }
void SetModifyFlag( bool b ) { aEditDoc.SetModified( b ); }
void SetModifyHdl( const Link<LinkParamNone*,void>& rLink ) { aModifyHdl = rLink; }
- Link<LinkParamNone*,void> GetModifyHdl() const { return aModifyHdl; }
+ const Link<LinkParamNone*,void>& GetModifyHdl() const { return aModifyHdl; }
bool IsInSelectionMode() { return bInSelection; }
@@ -848,10 +848,10 @@ public:
EditSelection* SelectParagraph( sal_Int32 nPara );
void SetStatusEventHdl( const Link<EditStatus&, void>& rLink ) { aStatusHdlLink = rLink; }
- Link<EditStatus&,void> GetStatusEventHdl() const { return aStatusHdlLink; }
+ const Link<EditStatus&,void>& GetStatusEventHdl() const { return aStatusHdlLink; }
void SetNotifyHdl( const Link<EENotify&,void>& rLink ) { aNotifyHdl = rLink; }
- Link<EENotify&,void> GetNotifyHdl() const { return aNotifyHdl; }
+ const Link<EENotify&,void>& GetNotifyHdl() const { return aNotifyHdl; }
void FormatAndUpdate( EditView* pCurView = nullptr );
inline void IdleFormatAndUpdate( EditView* pCurView = nullptr );
@@ -902,7 +902,7 @@ public:
GetSpeller();
void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > &xSpl )
{ xSpeller = xSpl; }
- css::uno::Reference< css::linguistic2::XHyphenator >
+ const css::uno::Reference< css::linguistic2::XHyphenator >&
GetHyphenator() const { return xHyphenator; }
void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator > &xHyph )
{ xHyphenator = xHyph; }
@@ -1012,11 +1012,11 @@ public:
/** sets a link that is called at the beginning of a drag operation at an edit view */
void SetBeginDropHdl( const Link<EditView*,void>& rLink ) { maBeginDropHdl = rLink; }
- Link<EditView*,void> GetBeginDropHdl() const { return maBeginDropHdl; }
+ const Link<EditView*,void>& GetBeginDropHdl() const { return maBeginDropHdl; }
/** sets a link that is called at the end of a drag operation at an edit view */
void SetEndDropHdl( const Link<EditView*,void>& rLink ) { maEndDropHdl = rLink; }
- Link<EditView*,void> GetEndDropHdl() const { return maEndDropHdl; }
+ const Link<EditView*,void>& GetEndDropHdl() const { return maEndDropHdl; }
/// specifies if auto-correction should capitalize the first word or not (default is on)
void SetFirstWordCapitalization( bool bCapitalize ) { bFirstWordCapitalization = bCapitalize; }