summaryrefslogtreecommitdiff
path: root/xmlhelp/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-08 09:04:18 +0200
committerNoel Grandin <noel@peralex.com>2016-03-08 09:04:47 +0200
commitb4fda7b3f9cf928f45baf6846dd70e97cdb9904a (patch)
tree9158f4d04ed9c144fbe32d4af73939df56b76179 /xmlhelp/source
parentc0bd26d73d438b6efc14b56231a6e7f05c8e4b92 (diff)
new loplugin:constantparam
finds parameters that are only ever being called with a single value Change-Id: Ibd0c9b6e6dbc1d1b5d5a005eaa19959560a6e50f
Diffstat (limited to 'xmlhelp/source')
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx6
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.hxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index b2c3da0d7202..cbb49ef58e74 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -84,7 +84,7 @@ URLParameter::URLParameter( const OUString& aURL,
: m_pDatabases( pDatabases ),
m_aURL( aURL )
{
- init( false );
+ init();
parse();
}
@@ -196,10 +196,8 @@ OUString URLParameter::get_program()
}
-void URLParameter::init( bool bDefaultLanguageIsInitialized )
+void URLParameter::init()
{
- (void)bDefaultLanguageIsInitialized;
-
m_bHelpDataFileRead = false;
m_bStart = false;
m_bUseDB = true;
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
index 13bdff6dd003..044b92206c40 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx
@@ -212,7 +212,7 @@ namespace chelp {
// private methods
- void init( bool bDefaultLanguageIsInitialized );
+ void init();
OUString get_the_tag();