summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-03-15 15:13:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-03-15 16:54:58 +0100
commitece27693ba52417bc4b68045f5544a5cc43299dc (patch)
treed446ad78537ef9ba928153cfdcdc0c7dd89212b5 /sfx2
parent659fe6f310772b822adf3a2d32bcddbfc3bb1277 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/dispatch.cxx3
1 files changed, 1 insertions, 2 deletions
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 <config_features.h>
#include <algorithm>
-#include <cstddef>
#include <deque>
#include <vector>
@@ -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<sal_uInt16 const>::index_type n = 1; n < pSIDs.size(); ++n )
DBG_ASSERT( pSIDs[n] > pSIDs[n-1], "SetSlotFilter: SIDs not sorted" );
#endif