summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-29 09:20:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-29 10:55:41 +0100
commite21ae87458b0b6e0ad4cc9b41ed02fc8b6a20736 (patch)
tree8101e85cb91ed84dd9cac366f6e0dd930f66ead0 /xmlhelp
parenta1ccac19ab1bc616262ed3a5f7511f258c3e2aa8 (diff)
loplugin:passstuffbyref improved return in xmlhelp,slideshow
Change-Id: I57e235ecec733f1b5dd03f95f4e022769a369ae2 Reviewed-on: https://gerrit.libreoffice.org/47165 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx2
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 3ae9330d084d..5a93c3075b5c 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -198,7 +198,7 @@ OUString URLParameter::get_the_tag()
}
-OUString URLParameter::get_path()
+OUString const & URLParameter::get_path()
{
if(m_bUseDB) {
if( ! m_bHelpDataFileRead )
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
index 29edea3d30db..2c339a5d072a 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
@@ -124,7 +124,7 @@ namespace chelp {
// Not called for an directory
- OUString get_path();
+ OUString const & get_path();
const OUString& get_eid() const { return m_aEid; }