diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-16 15:55:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-17 08:40:59 +0200 |
commit | 7fd3c5e8e5897617f1e89fda26f8cdbd4092071d (patch) | |
tree | 60704a90ddff313e6702925224a747cac0d6f1cc /svl/qa/unit | |
parent | 388685ea72fc22bd375e9f31a339632e175f4290 (diff) |
remove GetCharClassPtr from SvtSysLocale
we already have GetCharClass and we never return a nullptr
Change-Id: I3cb79bc60be614c0474ecfdaad17991f2ecb6368
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122208
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/qa/unit')
-rw-r--r-- | svl/qa/unit/svl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/qa/unit/svl.cxx b/svl/qa/unit/svl.cxx index c9bcbc8806b7..8baffff86cab 100644 --- a/svl/qa/unit/svl.cxx +++ b/svl/qa/unit/svl.cxx @@ -327,7 +327,7 @@ void Test::testSharedString() void Test::testSharedStringPool() { SvtSysLocale aSysLocale; - svl::SharedStringPool aPool(*aSysLocale.GetCharClassPtr()); + svl::SharedStringPool aPool(aSysLocale.GetCharClass()); svl::SharedString p1, p2; p1 = aPool.intern("Andy"); @@ -360,7 +360,7 @@ void Test::testSharedStringPool() void Test::testSharedStringPoolPurge() { SvtSysLocale aSysLocale; - svl::SharedStringPool aPool(*aSysLocale.GetCharClassPtr()); + svl::SharedStringPool aPool(aSysLocale.GetCharClass()); aPool.intern("Andy"); aPool.intern("andy"); aPool.intern("ANDY"); @@ -418,7 +418,7 @@ void Test::testSharedStringPoolPurgeBug1() // We had a bug where, if we had two strings that mapped to the same uppercase string, // purge() would de-reference a dangling pointer and consequently cause an ASAN failure. SvtSysLocale aSysLocale; - svl::SharedStringPool aPool(*aSysLocale.GetCharClassPtr()); + svl::SharedStringPool aPool(aSysLocale.GetCharClass()); aPool.intern("Andy"); aPool.intern("andy"); aPool.purge(); |