sw/source/filter/html/css1atr.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 42ee2dfc4065f92879d490bf9b3ad34e9564c0f3 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Mon Oct 21 16:12:18 2024 +0200 Commit: David Gilbert <freedesk...@treblig.org> CommitDate: Fri Nov 1 02:01:40 2024 +0100 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 736, 796 Change-Id: I612647fcf1f5ebb86c36373501b505b503a8fef7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175317 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesk...@treblig.org> diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx index a0191f4e50ef..447e63351bd3 100644 --- a/sw/source/filter/html/css1atr.cxx +++ b/sw/source/filter/html/css1atr.cxx @@ -733,6 +733,8 @@ sal_uInt16 SwHTMLWriter::GetCSS1Selector( const SwFormat *pFormat, OString& rTok case RES_POOLCOLL_HEADLINE_BASE: case RES_POOLCOLL_STANDARD: // do not export this template + case RES_POOLCOLL_HTML_HR: + // do not export HR ! bStop = (nDeep==0); break; case RES_POOLCOLL_TEXT: @@ -791,10 +793,6 @@ sal_uInt16 SwHTMLWriter::GetCSS1Selector( const SwFormat *pFormat, OString& rTok else rToken = OOO_STRING_SVTOOLS_HTML_parabreak ""_ostr; break; - case RES_POOLCOLL_HTML_HR: - // do not export HR ! - bStop = (nDeep==0); - break; case RES_POOLCOLL_FOOTNOTE: if( !nDeep ) {