diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-12 15:58:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-13 11:27:30 +0100 |
commit | 73df1aea4f8a779241c053ab54f616f7b3a6dcb9 (patch) | |
tree | 4692637c56cdf2b9e1c2a949503ccd26a0fb3ca5 /include/sfx2 | |
parent | c3e9d393ea10da48e8b9ab4742dbc5277b7c4882 (diff) |
array_view was changed to span in upcoming C++20
...see <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0122r7.pdf>
"span: bounds-safe views for sequences of objects". o3tl::span is still an
incomplete approximation of std::span; removed those o3tl::array_view members
that are not present in std::span (and were not used in the code).
Relies on C++17 __has_include to use standard <span> where available (e.g., in
LLVM 7 libc++).
Change-Id: I82a7e246b61b2456fa6183025d25eec4121ad3c9
Reviewed-on: https://gerrit.libreoffice.org/66215
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/dispatch.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx index 9e2f0a0379a2..899957133024 100644 --- a/include/sfx2/dispatch.hxx +++ b/include/sfx2/dispatch.hxx @@ -29,7 +29,7 @@ #include <sfx2/viewfrm.hxx> #include <vcl/menu.hxx> #include <o3tl/typed_flags_set.hxx> -#include <o3tl/array_view.hxx> +#include <o3tl/span.hxx> #include <initializer_list> @@ -161,7 +161,7 @@ public: void Lock( bool bLock ); bool IsLocked() const; void SetSlotFilter( SfxSlotFilterState nEnable = SfxSlotFilterState::DISABLED, - o3tl::array_view<sal_uInt16 const> pSIDs = o3tl::array_view<sal_uInt16 const>()); + o3tl::span<sal_uInt16 const> pSIDs = o3tl::span<sal_uInt16 const>()); void HideUI( bool bHide = true ); ToolbarId GetObjectBarId( sal_uInt16 nPos ) const; |