From c394363c84064c041391627602665ea1fa74db60 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 30 Jul 2017 12:15:18 +0200 Subject: loplugin:constparams in basctl Change-Id: If6c2b980a2916c4ee8ac108fbb84b006a35f49c5 Reviewed-on: https://gerrit.libreoffice.org/40570 Tested-by: Jenkins Reviewed-by: Noel Grandin --- i18npool/inc/breakiteratorImpl.hxx | 2 +- i18npool/inc/calendarImpl.hxx | 2 +- i18npool/inc/characterclassificationImpl.hxx | 4 ++-- i18npool/inc/collatorImpl.hxx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'i18npool') diff --git a/i18npool/inc/breakiteratorImpl.hxx b/i18npool/inc/breakiteratorImpl.hxx index 499a4930684a..8ae8d254d9b7 100644 --- a/i18npool/inc/breakiteratorImpl.hxx +++ b/i18npool/inc/breakiteratorImpl.hxx @@ -111,7 +111,7 @@ protected: private: struct lookupTableItem { - lookupTableItem(const css::lang::Locale& _aLocale, css::uno::Reference < XBreakIterator >& _xBI) : aLocale(_aLocale), xBI(_xBI) {}; + lookupTableItem(const css::lang::Locale& _aLocale, css::uno::Reference < XBreakIterator > const & _xBI) : aLocale(_aLocale), xBI(_xBI) {}; css::lang::Locale aLocale; css::uno::Reference < XBreakIterator > xBI; }; diff --git a/i18npool/inc/calendarImpl.hxx b/i18npool/inc/calendarImpl.hxx index 06fe9be6aaca..ce0b9f66d2b0 100644 --- a/i18npool/inc/calendarImpl.hxx +++ b/i18npool/inc/calendarImpl.hxx @@ -95,7 +95,7 @@ public: private: struct lookupTableItem { - lookupTableItem(const OUString& _uniqueID, css::uno::Reference < css::i18n::XCalendar4 >& _xCalendar) + lookupTableItem(const OUString& _uniqueID, css::uno::Reference < css::i18n::XCalendar4 > const & _xCalendar) : uniqueID(_uniqueID), xCalendar(_xCalendar) {} OUString uniqueID; css::uno::Reference < css::i18n::XCalendar4 > xCalendar; diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx index 2102c82dd7af..659b34210f9c 100644 --- a/i18npool/inc/characterclassificationImpl.hxx +++ b/i18npool/inc/characterclassificationImpl.hxx @@ -69,8 +69,8 @@ public: private: struct lookupTableItem { lookupTableItem(const css::lang::Locale& rLocale, const OUString& rName, - css::uno::Reference < XCharacterClassification >& rxCI) : - aLocale(rLocale), aName(rName), xCI(rxCI) {}; + css::uno::Reference < XCharacterClassification > const & rxCI) : + aLocale(rLocale), aName(rName), xCI(rxCI) {}; css::lang::Locale aLocale; OUString aName; css::uno::Reference < XCharacterClassification > xCI; diff --git a/i18npool/inc/collatorImpl.hxx b/i18npool/inc/collatorImpl.hxx index 34ddfc70c565..62f1e0a430dd 100644 --- a/i18npool/inc/collatorImpl.hxx +++ b/i18npool/inc/collatorImpl.hxx @@ -79,7 +79,7 @@ private: OUString service; css::uno::Reference < XCollator > xC; lookupTableItem(const lang::Locale& rLocale, const OUString& _algorithm, const OUString& _service, - css::uno::Reference < XCollator >& _xC) : aLocale(rLocale), algorithm(_algorithm), service(_service), xC(_xC) {} + css::uno::Reference < XCollator > const & _xC) : aLocale(rLocale), algorithm(_algorithm), service(_service), xC(_xC) {} bool SAL_CALL equals(const lang::Locale& rLocale, const OUString& _algorithm) { return aLocale.Language == rLocale.Language && aLocale.Country == rLocale.Country && -- cgit