summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-28 11:47:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-28 14:51:56 +0200
commitb09deb075319c1c19f91e3a6f64429b61682ebf8 (patch)
tree9e73d1e63092083a337a4ddf1dfe962b4f6ef4dc /linguistic
parent587d6e13df7bb9c8f78ce605ebb8f8fd34b85a2c (diff)
loplugin:constparams handle constructors
had to change the structure of the plugin considerably, was too messy to structure it to do the calculations on a per-function basis Change-Id: I4edee7735f726101105c607368124a08dba21086 Reviewed-on: https://gerrit.libreoffice.org/40516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/convdicxml.hxx2
-rw-r--r--linguistic/source/lngprophelp.cxx14
2 files changed, 8 insertions, 8 deletions
diff --git a/linguistic/source/convdicxml.hxx b/linguistic/source/convdicxml.hxx
index 8463d190a0e2..68824a38266a 100644
--- a/linguistic/source/convdicxml.hxx
+++ b/linguistic/source/convdicxml.hxx
@@ -44,7 +44,7 @@ class ConvDicXMLExport : public SvXMLExport
public:
ConvDicXMLExport( ConvDic &rConvDic,
const OUString &rFileName,
- css::uno::Reference< css::xml::sax::XDocumentHandler > &rHandler) :
+ css::uno::Reference< css::xml::sax::XDocumentHandler > const &rHandler) :
SvXMLExport ( comphelper::getProcessComponentContext(), "com.sun.star.lingu2.ConvDicXMLExport", rFileName,
css::util::MeasureUnit::CM, rHandler ),
rDic ( rConvDic ),
diff --git a/linguistic/source/lngprophelp.cxx b/linguistic/source/lngprophelp.cxx
index 2846569b172b..0bf1a52db3fc 100644
--- a/linguistic/source/lngprophelp.cxx
+++ b/linguistic/source/lngprophelp.cxx
@@ -56,7 +56,7 @@ static const int nCHCount = SAL_N_ELEMENTS(aCH);
PropertyChgHelper::PropertyChgHelper(
const Reference< XInterface > &rxSource,
- Reference< XLinguProperties > &rxPropSet,
+ Reference< XLinguProperties > const &rxPropSet,
int nAllowedEvents ) :
PropertyChgHelperBase(),
aPropNames (nCHCount),
@@ -303,7 +303,7 @@ sal_Bool SAL_CALL
PropertyHelper_Thes::PropertyHelper_Thes(
const Reference< XInterface > &rxSource,
- Reference< XLinguProperties > &rxPropSet ) :
+ Reference< XLinguProperties > const &rxPropSet ) :
PropertyChgHelper ( rxSource, rxPropSet, 0 )
{
SetDefaultValues();
@@ -336,7 +336,7 @@ static const char *aSP[] =
PropertyHelper_Spell::PropertyHelper_Spell(
const Reference< XInterface > & rxSource,
- Reference< XLinguProperties > &rxPropSet ) :
+ Reference< XLinguProperties > const &rxPropSet ) :
PropertyChgHelper ( rxSource, rxPropSet, AE_SPELLCHECKER )
{
AddPropNames( aSP, SAL_N_ELEMENTS(aSP) );
@@ -517,7 +517,7 @@ static const char *aHP[] =
PropertyHelper_Hyphen::PropertyHelper_Hyphen(
const Reference< XInterface > & rxSource,
- Reference< XLinguProperties > &rxPropSet ) :
+ Reference< XLinguProperties > const &rxPropSet ) :
PropertyChgHelper ( rxSource, rxPropSet, AE_HYPHENATOR )
{
AddPropNames( aHP, SAL_N_ELEMENTS(aHP) );
@@ -659,7 +659,7 @@ void PropertyHelper_Hyphen::SetTmpPropVals( const PropertyValues &rPropVals )
PropertyHelper_Thesaurus::PropertyHelper_Thesaurus(
const css::uno::Reference< css::uno::XInterface > &rxSource,
- css::uno::Reference< css::linguistic2::XLinguProperties > &rxPropSet )
+ css::uno::Reference< css::linguistic2::XLinguProperties > const &rxPropSet )
{
pInst = new PropertyHelper_Thes( rxSource, rxPropSet );
xPropHelper = pInst;
@@ -686,7 +686,7 @@ void PropertyHelper_Thesaurus::SetTmpPropVals( const css::beans::PropertyValues
PropertyHelper_Hyphenation::PropertyHelper_Hyphenation(
const css::uno::Reference< css::uno::XInterface > &rxSource,
- css::uno::Reference< css::linguistic2::XLinguProperties > &rxPropSet)
+ css::uno::Reference< css::linguistic2::XLinguProperties > const &rxPropSet)
{
pInst = new PropertyHelper_Hyphen( rxSource, rxPropSet );
xPropHelper = pInst;
@@ -740,7 +740,7 @@ bool PropertyHelper_Hyphenation::removeLinguServiceEventListener(
PropertyHelper_Spelling::PropertyHelper_Spelling(
const css::uno::Reference< css::uno::XInterface > &rxSource,
- css::uno::Reference< css::linguistic2::XLinguProperties > &rxPropSet )
+ css::uno::Reference< css::linguistic2::XLinguProperties > const &rxPropSet )
{
pInst = new PropertyHelper_Spell( rxSource, rxPropSet );
xPropHelper = pInst;