From ece27693ba52417bc4b68045f5544a5cc43299dc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 15 Mar 2019 15:13:52 +0100 Subject: Adapt to C++2a std::span<>::index_type being unsigned size_t ...and no longer signed ptrdiff_t (which now caused -Werror,-Wsign-compare here) Change-Id: I48234d9cc4c35583e3268441dcc21a03fab3e856 Reviewed-on: https://gerrit.libreoffice.org/69306 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sfx2/source/control/dispatch.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 06c04362f763..840ad03bd814 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -20,7 +20,6 @@ #include #include -#include #include #include @@ -1546,7 +1545,7 @@ void SfxDispatcher::SetSlotFilter(SfxSlotFilterState nEnable, { #ifdef DBG_UTIL // Check Array - for ( std::ptrdiff_t n = 1; n < pSIDs.size(); ++n ) + for ( o3tl::span::index_type n = 1; n < pSIDs.size(); ++n ) DBG_ASSERT( pSIDs[n] > pSIDs[n-1], "SetSlotFilter: SIDs not sorted" ); #endif -- cgit