Kaydet (Commit) ece27693 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 659fe6f3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment