diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 17:06:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-22 09:12:56 +0200 |
commit | c82cf38427c47f60ba6cc6a008c9f60fb488dae9 (patch) | |
tree | 88e3145e80ad802f9b0c27f00139efb3712bef1a /lingucomponent | |
parent | 5fad6eb1b38d369f4f7ca401f3c651292667486e (diff) |
loplugin:constparams in editeng,lingucomponent
Change-Id: I99d9153e3fd1fead34c856ac68a120bb06a003d3
Reviewed-on: https://gerrit.libreoffice.org/40296
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent')
4 files changed, 12 insertions, 12 deletions
diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index 836722c5000e..45fbf3dc5dc0 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -719,21 +719,21 @@ Reference< XPossibleHyphens > SAL_CALL Hyphenator::createPossibleHyphens( const return nullptr; } -OUString SAL_CALL Hyphenator::makeLowerCase(const OUString& aTerm, CharClass * pCC) +OUString SAL_CALL Hyphenator::makeLowerCase(const OUString& aTerm, CharClass const * pCC) { if (pCC) return pCC->lowercase(aTerm); return aTerm; } -OUString SAL_CALL Hyphenator::makeUpperCase(const OUString& aTerm, CharClass * pCC) +OUString SAL_CALL Hyphenator::makeUpperCase(const OUString& aTerm, CharClass const * pCC) { if (pCC) return pCC->uppercase(aTerm); return aTerm; } -OUString SAL_CALL Hyphenator::makeInitCap(const OUString& aTerm, CharClass * pCC) +OUString SAL_CALL Hyphenator::makeInitCap(const OUString& aTerm, CharClass const * pCC) { sal_Int32 tlen = aTerm.getLength(); if (pCC && tlen) diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx index cb3d07d2a631..75406e898831 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx @@ -119,9 +119,9 @@ public: static Sequence< OUString > getSupportedServiceNames_Static() throw(); private: - static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *); - static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *); - static OUString SAL_CALL makeInitCap(const OUString&, CharClass *); + static OUString SAL_CALL makeLowerCase(const OUString&, CharClass const *); + static OUString SAL_CALL makeUpperCase(const OUString&, CharClass const *); + static OUString SAL_CALL makeInitCap(const OUString&, CharClass const *); }; inline OUString Hyphenator::getImplementationName_Static() throw() diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index e271689287de..19906445ce0f 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -546,21 +546,21 @@ void SAL_CALL Thesaurus::initialize( const Sequence< Any >& rArguments ) } } -OUString SAL_CALL Thesaurus::makeLowerCase(const OUString& aTerm, CharClass * pCC) +OUString SAL_CALL Thesaurus::makeLowerCase(const OUString& aTerm, CharClass const * pCC) { if (pCC) return pCC->lowercase(aTerm); return aTerm; } -OUString SAL_CALL Thesaurus::makeUpperCase(const OUString& aTerm, CharClass * pCC) +OUString SAL_CALL Thesaurus::makeUpperCase(const OUString& aTerm, CharClass const * pCC) { if (pCC) return pCC->uppercase(aTerm); return aTerm; } -OUString SAL_CALL Thesaurus::makeInitCap(const OUString& aTerm, CharClass * pCC) +OUString SAL_CALL Thesaurus::makeInitCap(const OUString& aTerm, CharClass const * pCC) { sal_Int32 tlen = aTerm.getLength(); if (pCC && tlen) diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx index 2039ecc0aa09..17f1249c1b11 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx @@ -120,9 +120,9 @@ public: getSupportedServiceNames_Static() throw(); private: - static OUString SAL_CALL makeLowerCase(const OUString&, CharClass *); - static OUString SAL_CALL makeUpperCase(const OUString&, CharClass *); - static OUString SAL_CALL makeInitCap(const OUString&, CharClass *); + static OUString SAL_CALL makeLowerCase(const OUString&, CharClass const *); + static OUString SAL_CALL makeUpperCase(const OUString&, CharClass const *); + static OUString SAL_CALL makeInitCap(const OUString&, CharClass const *); }; inline OUString Thesaurus::getImplementationName_Static() throw() |