summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 13:01:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-01 20:58:11 +0200
commit581efdec36787dc5e378e54d13e7328fddcf3a50 (patch)
tree29f04e719f8402028a4e26088a8ea825ebe9fdca /i18npool/inc
parente512b53ef8ae7945131876d32121fdbbdeb1de35 (diff)
loplugin:constmethod
Change-Id: I3ed657c5c5e6840e38e3c8505505b4b372125df0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122910 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/cclass_unicode.hxx2
-rw-r--r--i18npool/inc/characterclassificationImpl.hxx8
-rw-r--r--i18npool/inc/indexentrysupplier_common.hxx2
-rw-r--r--i18npool/inc/transliteration_Numeric.hxx2
-rw-r--r--i18npool/inc/xdictionary.hxx6
5 files changed, 10 insertions, 10 deletions
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<lookupTableItem> 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;
};
}