summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-28 09:58:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-28 12:15:10 +0100
commitb9183166214c0f461b6fefb34bbf4a57ea878bdf (patch)
tree0627d5f2c435c0e214c4c49f161f753eb5cce50d /include
parent64d4f117447d990ed3215b0dd619e07de26ce417 (diff)
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')
-rw-r--r--include/editeng/CustomPropertyField.hxx4
-rw-r--r--include/editeng/editeng.hxx16
-rw-r--r--include/editeng/editview.hxx2
-rw-r--r--include/editeng/outliner.hxx18
4 files changed, 20 insertions, 20 deletions
diff --git a/include/editeng/CustomPropertyField.hxx b/include/editeng/CustomPropertyField.hxx
index 30f082c5cfd4..2a06592b9c36 100644
--- a/include/editeng/CustomPropertyField.hxx
+++ b/include/editeng/CustomPropertyField.hxx
@@ -43,12 +43,12 @@ public:
OUString GetFormatted(css::uno::Reference<css::document::XDocumentProperties> const & xDocumentProperties);
- OUString GetName() const
+ OUString const & GetName() const
{
return msName;
}
- OUString GetCurrentPresentation() const
+ OUString const & GetCurrentPresentation() const
{
return msCurrentPresentation;
}
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 );
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 6e566be7be7d..52f56d517de6 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -220,7 +220,7 @@ public:
ErrCode Read( SvStream& rInput, EETextFormat eFormat, SvKeyValueIterator* pHTTPHeaderAttrs );
void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
+ Color const & GetBackgroundColor() const;
/// Informs this edit view about which view shell contains it.
void RegisterViewShell(OutlinerViewShell* pViewShell);
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 0ae54025809a..a892f4c16f72 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -242,9 +242,9 @@ public:
bool IsReadOnly() const;
void SetOutputArea( const tools::Rectangle& rRect );
- tools::Rectangle GetOutputArea() const;
+ tools::Rectangle const & GetOutputArea() const;
- tools::Rectangle GetVisArea() const;
+ tools::Rectangle const & GetVisArea() const;
void CreateSelectionList (std::vector<Paragraph*> &aSelList) ;
@@ -269,7 +269,7 @@ public:
void CollapseAll();
void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor();
+ Color const & GetBackgroundColor();
/// Informs this edit view about which view shell contains it.
void RegisterViewShell(OutlinerViewShell* pViewShell);
@@ -717,10 +717,10 @@ public:
const SfxItemSet& GetEmptyItemSet() const;
void SetRefMapMode( const MapMode& );
- MapMode GetRefMapMode() const;
+ MapMode const & GetRefMapMode() const;
void SetBackgroundColor( const Color& rColor );
- Color GetBackgroundColor() const;
+ Color const & GetBackgroundColor() const;
void SetMaxDepth( sal_Int16 nDepth );
sal_Int16 GetMaxDepth() const { return nMaxDepth; }
@@ -791,12 +791,12 @@ public:
void SetPaintFirstLineHdl(const Link<PaintFirstLineInfo*,void>& rLink) { maPaintFirstLineHdl = rLink; }
void SetModifyHdl( const Link<LinkParamNone*,void>& rLink );
- Link<LinkParamNone*,void> GetModifyHdl() const;
+ Link<LinkParamNone*,void> const & GetModifyHdl() const;
void SetNotifyHdl( const Link<EENotify&,void>& rLink );
void SetStatusEventHdl( const Link<EditStatus&, void>& rLink );
- Link<EditStatus&, void> GetStatusEventHdl() const;
+ Link<EditStatus&, void> const & GetStatusEventHdl() const;
void Draw( OutputDevice* pOutDev, const tools::Rectangle& rOutRect );
void Draw( OutputDevice* pOutDev, const Point& rStartPos );
@@ -827,7 +827,7 @@ public:
EBulletInfo GetBulletInfo( sal_Int32 nPara );
void SetWordDelimiters( const OUString& rDelimiters );
- OUString GetWordDelimiters() const;
+ OUString const & GetWordDelimiters() const;
OUString GetWord( sal_Int32 nPara, sal_Int32 nIndex );
void StripPortions();
@@ -907,7 +907,7 @@ public:
virtual OUString CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_Int32 nPos, Color*& rTxtColor, Color*& rFldColor );
void SetSpeller( css::uno::Reference< css::linguistic2::XSpellChecker1 > const &xSpeller );
- css::uno::Reference< css::linguistic2::XSpellChecker1 >
+ css::uno::Reference< css::linguistic2::XSpellChecker1 > const &
GetSpeller();
void SetHyphenator( css::uno::Reference< css::linguistic2::XHyphenator > const & xHyph );