From 0351bec874f7e83c437e485e8d61a41f32718e25 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Jul 2022 12:34:49 +0200 Subject: 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 --- sfx2/source/doc/iframe.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2') 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 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::get(), PROPERTY_UNBOUND, 0 }, { u"FrameName", WID_FRAME_NAME, cppu::UnoType::get(), PROPERTY_UNBOUND, 0 }, { u"FrameURL", WID_FRAME_URL, cppu::UnoType::get(), PROPERTY_UNBOUND, 0 }, - { u"", 0, css::uno::Type(), 0, 0 } }; return aIFramePropertyMap_Impl; } -- cgit