diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-18 09:22:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-27 06:48:25 +0000 |
commit | 508c95f1b655d9cfa6be37a5a9de9aff6fd383bf (patch) | |
tree | d1c8626818cbf26a699875ae2d82f751a1657e92 /xmlhelp | |
parent | 9f4af777a832d8a0b9a21d793d421fa6228131e0 (diff) |
improve passstuffbyref return analysis
Change-Id: I4258bcc97273d8bb7a8c4879fac02a427f76e18c
Reviewed-on: https://gerrit.libreoffice.org/27317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 6 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.hxx | 8 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 471ffc6a5008..7792e65e4dcb 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -127,7 +127,7 @@ OString URLParameter::getByName( const char* par ) } -OUString URLParameter::get_id() +OUString const & URLParameter::get_id() { if( m_aId == "start" ) { // module is set @@ -171,7 +171,7 @@ OUString URLParameter::get_title() } -OUString URLParameter::get_language() +OUString const & URLParameter::get_language() { if( m_aLanguage.isEmpty() ) return m_aDefaultLanguage; @@ -180,7 +180,7 @@ OUString URLParameter::get_language() } -OUString URLParameter::get_program() +OUString const & URLParameter::get_program() { if( m_aProgram.isEmpty() ) { diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx index 3d48807b0fc7..294a47396641 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx @@ -121,7 +121,7 @@ namespace chelp { bool isRoot() const { return m_aModule.isEmpty(); } bool isErrorDocument(); - OUString get_id(); + OUString const & get_id(); OUString get_tag(); @@ -139,7 +139,7 @@ namespace chelp { const OUString& get_module() const { return m_aModule; } - OUString get_dbpar() const + OUString const & get_dbpar() const { if( !m_aDbPar.isEmpty() ) return m_aDbPar; @@ -149,9 +149,9 @@ namespace chelp { const OUString& get_prefix() const { return m_aPrefix; } - OUString get_language(); + OUString const & get_language(); - OUString get_program(); + OUString const & get_program(); const OUString& get_query() const { return m_aQuery; } diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index c93e5b90b94a..b3b0f1569f12 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -126,7 +126,7 @@ namespace treeview { RTL_TEXTENCODING_UTF8 ); } - OUString getTargetURL() + OUString const & getTargetURL() { if( targetURL.isEmpty() ) { |