summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-23 09:17:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-23 12:36:24 +0100
commita8c1c0ae1617c68d49deb33e9236a2c1b7cac14d (patch)
treedec7ceaca24da8340a911502fd42dd19efb882ff /include/svl
parent38bf5f69663f64434a3a0a74e02c1a23f876b677 (diff)
loplugin:passstuffbyref improved returns in vcl
Change-Id: I0b103df2e7ce59093869f547225c95865d33da27 Reviewed-on: https://gerrit.libreoffice.org/46916 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/ownlist.hxx2
-rw-r--r--include/svl/urihelper.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svl/ownlist.hxx b/include/svl/ownlist.hxx
index 620b48078ac7..ef4d616032e1 100644
--- a/include/svl/ownlist.hxx
+++ b/include/svl/ownlist.hxx
@@ -68,7 +68,7 @@ public:
size_t size() const { return aCommandList.size(); }
- SvCommand operator[]( size_t i) {
+ SvCommand const & operator[]( size_t i) {
return aCommandList[ i ];
}
diff --git a/include/svl/urihelper.hxx b/include/svl/urihelper.hxx
index 6b5a2fc2ff36..92668263837c 100644
--- a/include/svl/urihelper.hxx
+++ b/include/svl/urihelper.hxx
@@ -61,7 +61,7 @@ SVL_DLLPUBLIC OUString SmartRel2Abs(INetURLObject const & rTheBaseURIRef,
SVL_DLLPUBLIC void SetMaybeFileHdl(Link<OUString *, bool> const & rTheMaybeFileHdl);
-SVL_DLLPUBLIC Link<OUString *, bool> GetMaybeFileHdl();
+SVL_DLLPUBLIC Link<OUString *, bool> const & GetMaybeFileHdl();
/**
Converts a URI reference to a relative one, ignoring certain differences (for