summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-15 15:21:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 09:04:55 +0200
commit196f46db1b5dfddda6972a6b738d8b77b6c3601e (patch)
tree3264b328e2479c38f08e7db7e2f1e93df7c3539a /sfx2/source/appl
parent19b4520fbfa8080821021586d8fe3428a2a893af (diff)
loplugin:constantparam
Change-Id: I0110e0c662004456e4bc8f8082e2e2fea59e0148 Reviewed-on: https://gerrit.libreoffice.org/54385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/newhelp.hxx2
-rw-r--r--sfx2/source/appl/sfxhelp.cxx6
2 files changed, 3 insertions, 5 deletions
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx
index 4c6d4818910a..48213720b426 100644
--- a/sfx2/source/appl/newhelp.hxx
+++ b/sfx2/source/appl/newhelp.hxx
@@ -577,7 +577,7 @@ public:
};
/// Appends ?Language=xy&System=abc to the help URL in rURL
-void AppendConfigToken(OUStringBuffer& rURL, bool bQuestionMark, const OUString &rLang = OUString());
+void AppendConfigToken(OUStringBuffer& rURL, bool bQuestionMark);
#endif // INCLUDED_SFX2_SOURCE_APPL_NEWHELP_HXX
diff --git a/sfx2/source/appl/sfxhelp.cxx b/sfx2/source/appl/sfxhelp.cxx
index 0ebb845b1dcc..9133afe6b8d9 100644
--- a/sfx2/source/appl/sfxhelp.cxx
+++ b/sfx2/source/appl/sfxhelp.cxx
@@ -272,11 +272,9 @@ static OUString HelpLocaleString()
-void AppendConfigToken( OUStringBuffer& rURL, bool bQuestionMark, const OUString &rLang )
+void AppendConfigToken( OUStringBuffer& rURL, bool bQuestionMark )
{
- OUString aLocaleStr( rLang );
- if ( aLocaleStr.isEmpty() )
- aLocaleStr = HelpLocaleString();
+ OUString aLocaleStr = HelpLocaleString();
// query part exists?
if ( bQuestionMark )