summaryrefslogtreecommitdiff
path: root/include/editeng/outliner.hxx
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/editeng/outliner.hxx
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/editeng/outliner.hxx')
-rw-r--r--include/editeng/outliner.hxx18
1 files changed, 9 insertions, 9 deletions
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 );