summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-14 10:20:52 +0200
committerNoel Grandin <noel@peralex.com>2016-04-14 10:24:47 +0200
commitb8eb2946511ce617323b13dffe2b1d9704e0be60 (patch)
treed5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /xmlhelp
parentd8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff)
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.hxx10
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.hxx14
2 files changed, 12 insertions, 12 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx
index d6efc1915d4f..5b8626d74e39 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.hxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.hxx
@@ -76,9 +76,9 @@ namespace chelp {
~StaticModuleInformation() { }
- OUString get_title() const { return m_aTitle; }
- OUString get_id() const { return m_aStartId; }
- OUString get_program() const { return m_aProgramSwitch; }
+ const OUString& get_title() const { return m_aTitle; }
+ const OUString& get_id() const { return m_aStartId; }
+ const OUString& get_program() const { return m_aProgramSwitch; }
int get_order() const { return m_nOrder; }
}; // end class StaticModuleInformation
@@ -226,8 +226,8 @@ namespace chelp {
void replaceName( OUString& oustring ) const;
- OUString getProductName() const { return m_vReplacement[0]; }
- OUString getProductVersion() const { return m_vReplacement[1]; }
+ const OUString& getProductName() const { return m_vReplacement[0]; }
+ const OUString& getProductVersion() const { return m_vReplacement[1]; }
OUString expandURL( const OUString& aURL );
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
index 044b92206c40..3d48807b0fc7 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
@@ -129,15 +129,15 @@ namespace chelp {
OUString get_path() { return get_the_path(); }
- OUString get_eid() const { return m_aEid; }
+ const OUString& get_eid() const { return m_aEid; }
OUString get_title();
OUString get_jar() { return get_the_jar(); }
- OUString get_ExtensionRegistryPath() const { return m_aExtensionRegistryPath; }
+ const OUString& get_ExtensionRegistryPath() const { return m_aExtensionRegistryPath; }
- OUString get_module() const { return m_aModule; }
+ const OUString& get_module() const { return m_aModule; }
OUString get_dbpar() const
{
@@ -147,17 +147,17 @@ namespace chelp {
return m_aModule;
}
- OUString get_prefix() const { return m_aPrefix; }
+ const OUString& get_prefix() const { return m_aPrefix; }
OUString get_language();
OUString get_program();
- OUString get_query() const { return m_aQuery; }
+ const OUString& get_query() const { return m_aQuery; }
- OUString get_scope() const { return m_aScope; }
+ const OUString& get_scope() const { return m_aScope; }
- OUString get_system() const { return m_aSystem; }
+ const OUString& get_system() const { return m_aSystem; }
sal_Int32 get_hitCount() const { return m_nHitCount; }