summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 10:08:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-17 15:08:07 +0200
commit470752f50c146b449b1c9bdccc36ed031535663c (patch)
tree92e5af3b31e63e6cffdcc51717d1bd6584c59729 /sw
parent561a02ec72cf963d7cd59cfb9a183c1032f0861b (diff)
create o3tl::array_view
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 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/view.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index 08f69fe9c533..752cdca79381 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -588,7 +588,7 @@ void SwView::CheckReadonlyState()
}
if ( SfxItemState::DISABLED == eStateRO )
{
- rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, SAL_N_ELEMENTS(aROIds), aROIds );
+ rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, aROIds );
bChgd = true;
}
}
@@ -603,9 +603,7 @@ void SwView::CheckReadonlyState()
qsort( static_cast<void*>(aAllProtIds), SAL_N_ELEMENTS(aAllProtIds), sizeof(sal_uInt16), lcl_CmpIds );
bAllProtFirst = false;
}
- rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY,
- SAL_N_ELEMENTS(aAllProtIds),
- aAllProtIds );
+ rDis.SetSlotFilter( SfxSlotFilterState::ENABLED_READONLY, aAllProtIds );
bChgd = true;
}
}