diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-17 10:59:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-17 15:02:55 +0200 |
commit | ce707fc2d3420be9423bb5e8d0300dbb71a5db6e (patch) | |
tree | 314ae040d0c8033fbd1a251b3bdc5b7db9529456 /sc/inc | |
parent | c67b9a4ce5ac3a09437730d8440c84159b581622 (diff) |
rather return ref from GetCollator
since we never return a nullptr.
Also add a new utility method to simplify the call sites that need to
pick the right collator
Change-Id: I5deb009cb5144fd182bbc6470ae30ea05e6979c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122237
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/global.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx index 6a3eab0d837d..a8b939114201 100644 --- a/sc/inc/global.hxx +++ b/sc/inc/global.hxx @@ -539,8 +539,11 @@ public: SC_DLLPUBLIC static const CharClass& getCharClass(); static CalendarWrapper& GetCalendar(); - SC_DLLPUBLIC static CollatorWrapper* GetCollator(); - static CollatorWrapper* GetCaseCollator(); + /// case-insensitive collator + SC_DLLPUBLIC static CollatorWrapper& GetCollator(); + /// case-sensitive collator + static CollatorWrapper& GetCaseCollator(); + static CollatorWrapper& GetCollator(bool bCaseSensitive); static css::lang::Locale* GetLocale(); SC_DLLPUBLIC static ::utl::TransliterationWrapper* GetpTransliteration(); |