From 581efdec36787dc5e378e54d13e7328fddcf3a50 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 1 Oct 2021 13:01:58 +0200 Subject: loplugin:constmethod Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910 Tested-by: Jenkins Reviewed-by: Noel Grandin --- i18npool/inc/cclass_unicode.hxx | 2 +- i18npool/inc/characterclassificationImpl.hxx | 8 ++++---- i18npool/inc/indexentrysupplier_common.hxx | 2 +- i18npool/inc/transliteration_Numeric.hxx | 2 +- i18npool/inc/xdictionary.hxx | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'i18npool/inc') diff --git a/i18npool/inc/cclass_unicode.hxx b/i18npool/inc/cclass_unicode.hxx index 704deabc46b5..b08170638de8 100644 --- a/i18npool/inc/cclass_unicode.hxx +++ b/i18npool/inc/cclass_unicode.hxx @@ -147,7 +147,7 @@ private: ParserFlags getFlags(sal_uInt32 c); /// Access parser flags via International and special definitions. - ParserFlags getFlagsExtended(sal_uInt32 c); + ParserFlags getFlagsExtended(sal_uInt32 c) const; /// Access parser table flags for user defined start characters. ParserFlags getStartCharsFlags( sal_uInt32 c ); diff --git a/i18npool/inc/characterclassificationImpl.hxx b/i18npool/inc/characterclassificationImpl.hxx index 4e03a54fd3be..9fc342d3949b 100644 --- a/i18npool/inc/characterclassificationImpl.hxx +++ b/i18npool/inc/characterclassificationImpl.hxx @@ -76,10 +76,10 @@ private: css::lang::Locale aLocale; OUString aName; css::uno::Reference < XCharacterClassification > xCI; - bool equals(const css::lang::Locale& rLocale) { - return aLocale.Language == rLocale.Language && - aLocale.Country == rLocale.Country && - aLocale.Variant == rLocale.Variant; + bool equals(const css::lang::Locale& rLocale) const { + return aLocale.Language == rLocale.Language && + aLocale.Country == rLocale.Country && + aLocale.Variant == rLocale.Variant; }; }; std::vector lookupTable; diff --git a/i18npool/inc/indexentrysupplier_common.hxx b/i18npool/inc/indexentrysupplier_common.hxx index 72685fda9aa2..f728e4230500 100644 --- a/i18npool/inc/indexentrysupplier_common.hxx +++ b/i18npool/inc/indexentrysupplier_common.hxx @@ -87,7 +87,7 @@ protected: /// @throws css::uno::RuntimeException const OUString& getEntry( const OUString& IndexEntry, - const OUString& PhoneticEntry, const css::lang::Locale& rLocale ); + const OUString& PhoneticEntry, const css::lang::Locale& rLocale ) const; }; } diff --git a/i18npool/inc/transliteration_Numeric.hxx b/i18npool/inc/transliteration_Numeric.hxx index 1e50e4a5d69c..10dc5f662afb 100644 --- a/i18npool/inc/transliteration_Numeric.hxx +++ b/i18npool/inc/transliteration_Numeric.hxx @@ -51,7 +51,7 @@ private: /// @throws css::uno::RuntimeException OUString transliterateBullet( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, - css::uno::Sequence< sal_Int32 >* pOffset ); + css::uno::Sequence< sal_Int32 >* pOffset ) const; }; } diff --git a/i18npool/inc/xdictionary.hxx b/i18npool/inc/xdictionary.hxx index 6d6e20f10240..664e88a4fa48 100644 --- a/i18npool/inc/xdictionary.hxx +++ b/i18npool/inc/xdictionary.hxx @@ -36,7 +36,7 @@ struct WordBreakCache { sal_Int32 size; // size of wordboundary WordBreakCache(); - bool equals(const sal_Unicode *str, css::i18n::Boundary const & boundary); // checking cached string + bool equals(const sal_Unicode *str, css::i18n::Boundary const & boundary) const; // checking cached string }; struct xdictionarydata @@ -80,8 +80,8 @@ private: bool seekSegment(const OUString& rText, sal_Int32 pos, css::i18n::Boundary& boundary); WordBreakCache& getCache(const sal_Unicode *text, css::i18n::Boundary const & boundary); - bool exists(const sal_uInt32 u); - sal_Int32 getLongestMatch(const sal_Unicode *text, sal_Int32 len); + bool exists(const sal_uInt32 u) const; + sal_Int32 getLongestMatch(const sal_Unicode *text, sal_Int32 len) const; }; } -- cgit