sw/source/uibase/utlui/content.cxx | 6 ------ 1 file changed, 6 deletions(-)
New commits: commit 81bce5cdfc7908464ac1f55193fbbdf9998f7689 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Nov 13 15:34:17 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Nov 13 16:33:56 2024 +0100 tdf#163486: PVS: variable was assigned the same value V1048 The 'm_bDelete' variable was assigned the same value. Change-Id: Ib324ee9473de6b8ce8d4e6e073265580c8a3ba68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176546 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Tested-by: Jenkins diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 8cd40cf97914..722e5bc2e93f 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -436,12 +436,10 @@ SwContentType::SwContentType(SwWrtShell* pShell, ContentTypeId nType, sal_uInt8 break; case ContentTypeId::TEXTFIELD: m_bEdit = true; - m_bDelete = true; break; case ContentTypeId::FOOTNOTE: case ContentTypeId::ENDNOTE: m_bEdit = true; - m_bDelete = true; break; case ContentTypeId::BOOKMARK: { @@ -455,21 +453,17 @@ SwContentType::SwContentType(SwWrtShell* pShell, ContentTypeId nType, sal_uInt8 case ContentTypeId::REGION: m_sTypeToken = "region"; m_bEdit = true; - m_bDelete = true; m_bRenamable = true; break; case ContentTypeId::INDEX: m_bEdit = true; - m_bDelete = true; m_bRenamable = true; break; case ContentTypeId::REFERENCE: m_bEdit = false; - m_bDelete = true; break; case ContentTypeId::URLFIELD: m_bEdit = true; - m_bDelete = true; break; case ContentTypeId::POSTIT: m_bEdit = true;