diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 11:35:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 08:19:59 +0200 |
commit | e669f70613ab1cad02e886aacc7a8d5df2550391 (patch) | |
tree | bf8d18012a2e7a27a6e3210004fae4f9ad6caf3b /i18npool | |
parent | 3ccaa4d9e9e18555e86e111259a4908413d36718 (diff) |
loplugin:constparams in i18npool,opencl,svl
Change-Id: I23368c3ce6d29c7b2e758e209e5a8315e82a2818
Reviewed-on: https://gerrit.libreoffice.org/40051
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/inc/inputsequencechecker.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/transliterationImpl.hxx | 2 | ||||
-rw-r--r-- | i18npool/inc/xdictionary.hxx | 4 | ||||
-rw-r--r-- | i18npool/qa/cppunit/test_breakiterator.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/breakiterator/gendict.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/breakiterator/xdictionary.cxx | 4 | ||||
-rw-r--r-- | i18npool/source/inputchecker/inputsequencechecker.cxx | 2 | ||||
-rw-r--r-- | i18npool/source/transliteration/transliterationImpl.cxx | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/i18npool/inc/inputsequencechecker.hxx b/i18npool/inc/inputsequencechecker.hxx index c92f10b927b7..b0ed20a14bd9 100644 --- a/i18npool/inc/inputsequencechecker.hxx +++ b/i18npool/inc/inputsequencechecker.hxx @@ -69,7 +69,7 @@ private: css::uno::Reference < css::uno::XComponentContext > m_xContext; /// @throws css::uno::RuntimeException - css::uno::Reference< css::i18n::XExtendedInputSequenceChecker >& SAL_CALL getInputSequenceChecker(sal_Char* rLanguage); + css::uno::Reference< css::i18n::XExtendedInputSequenceChecker >& SAL_CALL getInputSequenceChecker(sal_Char const * rLanguage); static sal_Char* SAL_CALL getLanguageByScripType(sal_Unicode cChar, sal_Unicode nChar); }; diff --git a/i18npool/inc/transliterationImpl.hxx b/i18npool/inc/transliterationImpl.hxx index e9990d1d8142..35c048efc951 100644 --- a/i18npool/inc/transliterationImpl.hxx +++ b/i18npool/inc/transliterationImpl.hxx @@ -97,7 +97,7 @@ private: void clear(); /// @throws css::uno::RuntimeException - void loadBody( OUString &implName, + void loadBody( OUString const &implName, css::uno::Reference< css::i18n::XExtendedTransliteration >& body ); /// @throws css::uno::RuntimeException diff --git a/i18npool/inc/xdictionary.hxx b/i18npool/inc/xdictionary.hxx index 09707ff37e8b..552117ebe980 100644 --- a/i18npool/inc/xdictionary.hxx +++ b/i18npool/inc/xdictionary.hxx @@ -37,7 +37,7 @@ struct WordBreakCache { sal_Int32 size; // size of wordboundary WordBreakCache(); - bool equals(const sal_Unicode *str, Boundary& boundary); // checking cached string + bool equals(const sal_Unicode *str, Boundary const & boundary); // checking cached string }; struct xdictionarydata @@ -80,7 +80,7 @@ private: Boundary segmentCachedBoundary; bool seekSegment(const OUString& rText, sal_Int32 pos, Boundary& boundary); - WordBreakCache& getCache(const sal_Unicode *text, Boundary& boundary); + WordBreakCache& getCache(const sal_Unicode *text, Boundary const & boundary); bool exists(const sal_uInt32 u); sal_Int32 getLongestMatch(const sal_Unicode *text, sal_Int32 len); }; diff --git a/i18npool/qa/cppunit/test_breakiterator.cxx b/i18npool/qa/cppunit/test_breakiterator.cxx index 8c5b377b3bd9..98a0bca96a77 100644 --- a/i18npool/qa/cppunit/test_breakiterator.cxx +++ b/i18npool/qa/cppunit/test_breakiterator.cxx @@ -68,7 +68,7 @@ public: private: uno::Reference<i18n::XBreakIterator> m_xBreak; - void doTestJapanese(uno::Reference< i18n::XBreakIterator > &xBreak); + void doTestJapanese(uno::Reference< i18n::XBreakIterator > const &xBreak); }; void TestBreakIterator::testLineBreaking() @@ -949,7 +949,7 @@ void TestBreakIterator::testKhmer() } #endif -void TestBreakIterator::doTestJapanese(uno::Reference< i18n::XBreakIterator > &xBreak) +void TestBreakIterator::doTestJapanese(uno::Reference< i18n::XBreakIterator > const &xBreak) { lang::Locale aLocale; aLocale.Language = "ja"; diff --git a/i18npool/source/breakiterator/gendict.cxx b/i18npool/source/breakiterator/gendict.cxx index 1ccae1942729..16950287d82b 100644 --- a/i18npool/source/breakiterator/gendict.cxx +++ b/i18npool/source/breakiterator/gendict.cxx @@ -217,7 +217,7 @@ static inline void printIndex1(FILE *source_fp, sal_Int16 *set) #endif } -static inline void printIndex2(FILE *source_fp, sal_Int16 *set) +static inline void printIndex2(FILE *source_fp, sal_Int16 const *set) { #ifndef DICT_JA_ZH_IN_DATAFILE fputs ("static const sal_Int32 index2[] = {\n\t", source_fp); diff --git a/i18npool/source/breakiterator/xdictionary.cxx b/i18npool/source/breakiterator/xdictionary.cxx index 18babd5c4cf0..90e866426d57 100644 --- a/i18npool/source/breakiterator/xdictionary.cxx +++ b/i18npool/source/breakiterator/xdictionary.cxx @@ -250,7 +250,7 @@ WordBreakCache::WordBreakCache() : * Compare two unicode string, */ -bool WordBreakCache::equals(const sal_Unicode* str, Boundary& boundary) +bool WordBreakCache::equals(const sal_Unicode* str, Boundary const & boundary) { // Different length, different string. if (length != boundary.endPos - boundary.startPos) return false; @@ -332,7 +332,7 @@ static sal_Int16 JapaneseCharType(sal_Unicode c) return KANJA; } -WordBreakCache& xdictionary::getCache(const sal_Unicode *text, Boundary& wordBoundary) +WordBreakCache& xdictionary::getCache(const sal_Unicode *text, Boundary const & wordBoundary) { WordBreakCache& rCache = cache[text[0] & 0x1f]; diff --git a/i18npool/source/inputchecker/inputsequencechecker.cxx b/i18npool/source/inputchecker/inputsequencechecker.cxx index ed6f12c59d20..5bb3ac320d98 100644 --- a/i18npool/source/inputchecker/inputsequencechecker.cxx +++ b/i18npool/source/inputchecker/inputsequencechecker.cxx @@ -106,7 +106,7 @@ InputSequenceCheckerImpl::getLanguageByScripType(sal_Unicode cChar, sal_Unicode } Reference< XExtendedInputSequenceChecker >& SAL_CALL -InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char* rLanguage) +InputSequenceCheckerImpl::getInputSequenceChecker(sal_Char const * rLanguage) { if (cachedItem && cachedItem->aLanguage == rLanguage) { return cachedItem->xISC; diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx index cadc35d1504c..cbd4ada13e61 100644 --- a/i18npool/source/transliteration/transliterationImpl.cxx +++ b/i18npool/source/transliteration/transliterationImpl.cxx @@ -595,7 +595,7 @@ namespace class theTransBodyMutex : public rtl::Static<osl::Mutex, theTransBodyMutex> {}; } -void TransliterationImpl::loadBody( OUString &implName, Reference<XExtendedTransliteration>& body ) +void TransliterationImpl::loadBody( OUString const &implName, Reference<XExtendedTransliteration>& body ) { assert(!implName.isEmpty()); ::osl::MutexGuard guard(theTransBodyMutex::get()); |