sw/source/uibase/utlui/content.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 6dfe95364d60de8fcb8c975fea5d0a473969fc32 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Aug 23 15:10:01 2025 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Aug 23 17:28:50 2025 +0200 cid#1665122 silence bogus Bad bit shift operation Change-Id: I12783972fba8f37288eeed0a109e0b8453f6fef6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190099 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 432a48bce845..2186155012c7 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -3256,6 +3256,9 @@ void SwContentTree::Display( bool bActive ) for( ContentTypeId nCntType : o3tl::enumrange<ContentTypeId>() ) { + // starts at 0 so ContentTypeId::UNKNOWN of -1 is skipped + assert(nCntType != ContentTypeId::UNKNOWN); + std::unique_ptr<SwContentType>& rpContentT = bActive ? m_aActiveContentArr[nCntType] : m_aHiddenContentArr[nCntType];