diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-21 12:34:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-25 10:00:23 +0200 |
commit | 0351bec874f7e83c437e485e8d61a41f32718e25 (patch) | |
tree | 463fa37a7d8a9c990edb80e8f9cf726002c8aa4d /linguistic | |
parent | 9700c1b2170ad04453a361ed5647937833ac3c18 (diff) |
use more o3tl::span
which means we can reserve precisely the right number of entries when
building maps
Change-Id: I580414699289369de4730caae09829bbd8759e82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137292
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index 1a48789aeeed..f1cd69636a42 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -136,7 +136,7 @@ OUString LinguOptions::GetName( sal_Int32 nWID ) //! map must be sorted by first entry in alphabetical increasing order. -static const SfxItemPropertyMapEntry* lcl_GetLinguProps() +static o3tl::span<const SfxItemPropertyMapEntry> lcl_GetLinguProps() { static const SfxItemPropertyMapEntry aLinguProps[] = { @@ -180,7 +180,6 @@ static const SfxItemPropertyMapEntry* lcl_GetLinguProps() cppu::UnoType<bool>::get(), 0, 0 }, { UPN_IS_WRAP_REVERSE, UPH_IS_WRAP_REVERSE, cppu::UnoType<bool>::get(), 0, 0 }, - { u"", 0, css::uno::Type(), 0, 0 } }; return aLinguProps; } |