summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 12:34:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-25 10:00:23 +0200
commit0351bec874f7e83c437e485e8d61a41f32718e25 (patch)
tree463fa37a7d8a9c990edb80e8f9cf726002c8aa4d /sfx2
parent9700c1b2170ad04453a361ed5647937833ac3c18 (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 'sfx2')
-rw-r--r--sfx2/source/doc/iframe.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx
index 1b1e39594287..40cb1da98d6e 100644
--- a/sfx2/source/doc/iframe.cxx
+++ b/sfx2/source/doc/iframe.cxx
@@ -128,7 +128,7 @@ IFrameWindow_Impl::IFrameWindow_Impl( vcl::Window *pParent, bool bHasBorder )
#define WID_FRAME_MARGIN_WIDTH 7
#define WID_FRAME_MARGIN_HEIGHT 8
-const SfxItemPropertyMapEntry* lcl_GetIFramePropertyMap_Impl()
+o3tl::span<const SfxItemPropertyMapEntry> lcl_GetIFramePropertyMap_Impl()
{
static const SfxItemPropertyMapEntry aIFramePropertyMap_Impl[] =
{
@@ -140,7 +140,6 @@ const SfxItemPropertyMapEntry* lcl_GetIFramePropertyMap_Impl()
{ u"FrameMarginWidth", WID_FRAME_MARGIN_WIDTH, cppu::UnoType<sal_Int32>::get(), PROPERTY_UNBOUND, 0 },
{ u"FrameName", WID_FRAME_NAME, cppu::UnoType<OUString>::get(), PROPERTY_UNBOUND, 0 },
{ u"FrameURL", WID_FRAME_URL, cppu::UnoType<OUString>::get(), PROPERTY_UNBOUND, 0 },
- { u"", 0, css::uno::Type(), 0, 0 }
};
return aIFramePropertyMap_Impl;
}