svl/source/items/itemset.cxx | 8 -------- 1 file changed, 8 deletions(-)
New commits: commit 6fcb7ca818ebf819008cac55f08fe0e6c310d8cc Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Jul 21 09:42:51 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Jul 21 14:56:35 2021 +0200 remove obsolete comments Change-Id: Ie2ceb7abb9bef5e84e740fba32f30697144f1c3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119303 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 70ec5d1c825f..d48bc568797a 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -63,10 +63,6 @@ SfxItemSet::SfxItemSet( m_pPool(&pool), m_pParent(nullptr), m_pItems(new SfxPoolItem const *[items]{}), m_pWhichRanges(wids), - // cannot overflow, assuming std::size_t is no smaller than sal_uInt16, - // as wids.size() must be substantially smaller than - // std::numeric_limits<sal_uInt16>::max() by construction in - // SfxItemSet::create m_nCount(0) { assert(wids.size() != 0); @@ -80,10 +76,6 @@ SfxItemSet::SfxItemSet( m_pPool(&pool), m_pParent(nullptr), m_pItems(new SfxPoolItem const *[items]{}), m_pWhichRanges(std::move(wids)), - // cannot overflow, assuming std::size_t is no smaller than sal_uInt16, - // as wids.size() must be substantially smaller than - // std::numeric_limits<sal_uInt16>::max() by construction in - // SfxItemSet::create m_nCount(0) { assert(m_pWhichRanges.size() != 0); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits