summaryrefslogtreecommitdiff
path: root/svtools/inc/roadmap.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-25 19:21:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-26 07:16:07 +0100
commitc54d34f70819c5928fe30585e86d744eda4a254a (patch)
tree81672bb2fd4c95cb09a6ed14197c8a0a8655dcb5 /svtools/inc/roadmap.hxx
parent09895ae4963850c05d7a315599195dd177f13b06 (diff)
loplugin:passstuffbyref improved return in canvas and svtools
and for now, ignore methods with params so we don't fall into the trap of thinking that calls to methods like: Bar& foo(Bar &p) { return p; } can be converted from Bar f() { return foo(Bar()); } to Bar const & f() { return foo(Bar()); } Change-Id: Ia3795eb2baf353cb6bec4ebf40451f2789d66ad7 Reviewed-on: https://gerrit.libreoffice.org/47034 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/inc/roadmap.hxx')
-rw-r--r--svtools/inc/roadmap.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/inc/roadmap.hxx b/svtools/inc/roadmap.hxx
index bfaf39befc25..3056dfb0bff6 100644
--- a/svtools/inc/roadmap.hxx
+++ b/svtools/inc/roadmap.hxx
@@ -72,7 +72,7 @@ public:
bool SelectRoadmapItemByID( ItemId _nItemID );
void SetItemSelectHdl( const Link<LinkParamNone*,void>& _rHdl );
- Link<LinkParamNone*,void> GetItemSelectHdl( ) const;
+ Link<LinkParamNone*,void> const & GetItemSelectHdl( ) const;
virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
virtual void GetFocus() override;
virtual void ApplySettings( vcl::RenderContext& rRenderContext ) override;