create o3tl::array_view

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 17 June 2017 09:08 EDT

A very basic implementation of the proposed std::array_view, similar to clang's llvm::ArrayRef.

Mostly cribbed from the string_view implementation :-)

Use it for the SfxDispatcher::setSlotFilter function

Change-Id: Ife7e4971741b41827e145787899872c9b2bea82b Reviewed-on: https://gerrit.libreoffice.org/38817

470752f5 create o3tl::array_view
include/o3tl/array_view.hxx | 169 +++++++++++++++++++++++++++++++
include/sfx2/dispatch.hxx | 3 +-
o3tl/CppunitTest_o3tl_tests.mk | 1 +
o3tl/qa/test-array_view.cxx | 79 +++++++++++++++
sd/source/ui/docshell/docshell.cxx | 7 +-
sd/source/ui/inc/DrawDocShell.hxx | 7 +-
sd/source/ui/slideshow/slideshowimpl.cxx | 4 +-
sfx2/source/control/dispatch.cxx | 18 ++--
sw/source/uibase/uiview/view.cxx | 6 +-
9 files changed, 267 insertions(+), 27 deletions(-)

Upstream: cgit.freedesktop.org


  • Share