summaryrefslogtreecommitdiff
path: root/xmlhelp/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-05 13:03:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-08 08:29:03 +0200
commit185ed3ddb8c01ee4465ce559e37113824f57b5c7 (patch)
tree596455ca4b9dc85666efbf06a1e1e0a3eec3ee2d /xmlhelp/source
parentd33e262a244f351febc9dbe605b05f76cb834eeb (diff)
teach loplugin:constantparam about simple constructor calls
Change-Id: I7d2a28ab5951fbdb5a427c84e9ac4c1e32ecf9f9 Reviewed-on: https://gerrit.libreoffice.org/37280 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp/source')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx7
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.hxx5
2 files changed, 3 insertions, 9 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 25c9d4f75467..846131ebdc79 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -515,11 +515,8 @@ helpdatafileproxy::Hdf* Databases::getHelpDataFile( const OUString& Database,
}
Reference< XCollator >
-Databases::getCollator( const OUString& Language,
- const OUString& System )
+Databases::getCollator( const OUString& Language )
{
- (void)System;
-
OUString key = Language;
osl::MutexGuard aGuard( m_aMutex );
@@ -799,7 +796,7 @@ KeywordInfo* Databases::getKeyword( const OUString& Database,
}
// sorting
- Reference< XCollator > xCollator = getCollator( Language,OUString());
+ Reference< XCollator > xCollator = getCollator( Language );
KeywordElementComparator aComparator( xCollator );
std::sort(aVector.begin(),aVector.end(),aComparator);
diff --git a/xmlhelp/source/cxxhelp/provider/databases.hxx b/xmlhelp/source/cxxhelp/provider/databases.hxx
index da69ca48432f..2b5975119e12 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.hxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.hxx
@@ -164,11 +164,8 @@ namespace chelp {
/**
* The following method returns the Collator for the given language-country combination
*/
-
css::uno::Reference< css::i18n::XCollator >
- getCollator( const OUString& Language,
- const OUString& System ); // System not used by current implementation
- // // of XCollator
+ getCollator( const OUString& Language );
/**
* Returns the cascading style sheet used to format the HTML-output.