summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-13 11:30:11 +0200
committerNoel Grandin <noel@peralex.com>2016-04-13 13:27:53 +0200
commit19b34c0039c6293f9b37aa70f8055aa2be28ba09 (patch)
tree04463a78141cd94ee70cd463ba7687993410c276 /svtools
parentfe8896bab01ccb595c993e54866a01f554b54f4f (diff)
loplugin:passstuffbyref in svtools
Change-Id: Ie166eaef65e56fafe4e57a5559b587d7558d7aa4
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/helpopt.cxx2
-rw-r--r--svtools/source/config/optionsdrawinglayer.cxx4
-rw-r--r--svtools/source/contnr/fileview.cxx2
-rw-r--r--svtools/source/contnr/viewdataentry.cxx2
-rw-r--r--svtools/source/control/breadcrumb.cxx2
-rw-r--r--svtools/source/control/ruler.cxx2
-rw-r--r--svtools/source/uno/treecontrolpeer.cxx2
7 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/config/helpopt.cxx b/svtools/source/config/helpopt.cxx
index f03ebcf317ea..6f612ef5b7cc 100644
--- a/svtools/source/config/helpopt.cxx
+++ b/svtools/source/config/helpopt.cxx
@@ -72,7 +72,7 @@ public:
void SetWelcomeScreen( bool b ) { bWelcomeScreen = b; SetModified(); }
bool IsWelcomeScreen() const { return bWelcomeScreen; }
- OUString GetSystem() const { return aSystem; }
+ const OUString& GetSystem() const { return aSystem; }
const OUString& GetHelpStyleSheet()const{return sHelpStyleSheet;}
void SetHelpStyleSheet(const OUString& rStyleSheet){sHelpStyleSheet = rStyleSheet; SetModified();}
diff --git a/svtools/source/config/optionsdrawinglayer.cxx b/svtools/source/config/optionsdrawinglayer.cxx
index be4e883d2af2..ce7eaa81693a 100644
--- a/svtools/source/config/optionsdrawinglayer.cxx
+++ b/svtools/source/config/optionsdrawinglayer.cxx
@@ -176,8 +176,8 @@ public:
bool IsOverlayBuffer() const { return m_bOverlayBuffer;}
bool IsPaintBuffer() const { return m_bPaintBuffer;}
- Color GetStripeColorA() const { return m_bStripeColorA;}
- Color GetStripeColorB() const { return m_bStripeColorB;}
+ const Color& GetStripeColorA() const { return m_bStripeColorA;}
+ const Color& GetStripeColorB() const { return m_bStripeColorB;}
sal_uInt16 GetStripeLength() const { return m_nStripeLength;}
// #i73602#
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index 666c2a0044c4..90a604c463e1 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -200,7 +200,7 @@ public:
void EnableAutoResize() { mbAutoResize = true; }
void EnableDelete( bool bEnable ) { mbEnableDelete = bEnable; }
- Reference< XCommandEnvironment > GetCommandEnvironment() const { return mxCmdEnv; }
+ const Reference< XCommandEnvironment >& GetCommandEnvironment() const { return mxCmdEnv; }
DECL_LINK_TYPED(ResetQuickSearch_Impl, Timer *, void);
diff --git a/svtools/source/contnr/viewdataentry.cxx b/svtools/source/contnr/viewdataentry.cxx
index f7fe1e1abff4..2644ccfedcc7 100644
--- a/svtools/source/contnr/viewdataentry.cxx
+++ b/svtools/source/contnr/viewdataentry.cxx
@@ -96,7 +96,7 @@ void SvViewDataEntry::SetPaintRectangle(Rectangle aRectangle)
maPaintRectangle = aRectangle;
}
-Rectangle SvViewDataEntry::GetPaintRectangle() const
+const Rectangle& SvViewDataEntry::GetPaintRectangle() const
{
return maPaintRectangle;
}
diff --git a/svtools/source/control/breadcrumb.cxx b/svtools/source/control/breadcrumb.cxx
index edbe22de1bb9..f743b2fc56ba 100644
--- a/svtools/source/control/breadcrumb.cxx
+++ b/svtools/source/control/breadcrumb.cxx
@@ -80,7 +80,7 @@ void Breadcrumb::SetClickHdl( const Link<Breadcrumb*,void>& rLink )
m_aClickHdl = rLink;
}
-OUString Breadcrumb::GetHdlURL()
+const OUString& Breadcrumb::GetHdlURL()
{
return m_sClickedURL;
}
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 5af99b7f18bb..712735789496 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2810,7 +2810,7 @@ bool Ruler::GetTextRTL()
return mpData->bTextRTL;
}
-RulerUnitData Ruler::GetCurrentRulerUnit() const
+const RulerUnitData& Ruler::GetCurrentRulerUnit() const
{
return aImplRulerUnitTab[mnUnitIndex];
}
diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx
index 24e4d375105d..84cc51660e9a 100644
--- a/svtools/source/uno/treecontrolpeer.cxx
+++ b/svtools/source/uno/treecontrolpeer.cxx
@@ -109,7 +109,7 @@ public:
virtual ~UnoTreeListItem();
void InitViewData( SvTreeListBox*,SvTreeListEntry*,SvViewDataItem* ) override;
void SetImage( const Image& rImage );
- OUString GetGraphicURL() const { return maGraphicURL;}
+ const OUString& GetGraphicURL() const { return maGraphicURL;}
void SetGraphicURL( const OUString& rGraphicURL );
virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;