starmath/source/visitors.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
New commits: commit de6b8b0ff1d2b4d081084bdce1556cc9c7fbee19 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Tue Oct 22 06:34:48 2024 +0200 Commit: David Gilbert <freedesk...@treblig.org> CommitDate: Sun Oct 27 18:51:33 2024 +0100 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 2335, 2338 V1037 Two or more case-branches perform the same actions. Check lines: 2464, 2533 V1037 Two or more case-branches perform the same actions. Check lines: 2503, 2506 Change-Id: I71c1149ce64bcfdfd6b4af72fdf65a8f19b8a892 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175393 Tested-by: Jenkins Reviewed-by: David Gilbert <freedesk...@treblig.org> diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 5d126fcff481..6768a83769e5 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -2332,8 +2332,6 @@ void SmNodeToTextVisitor::Visit( SmTextNode* pNode ) Append(u"\""); break; case TNUMBER: - Append( pNode->GetToken().aText ); - break; case TIDENT: Append( pNode->GetToken().aText ); break; @@ -2460,9 +2458,6 @@ void SmNodeToTextVisitor::Visit( SmMathSymbolNode* pNode ) case MS_ALEPH: Append(u"aleph"); break; - case 0x0362: - Append(u"widevec"); - break; case MS_DLARROW: Append(u"dlarrow"); break; @@ -2500,8 +2495,6 @@ void SmNodeToTextVisitor::Visit( SmMathSymbolNode* pNode ) Append(u"infinity"); break; case 0x22b2: // NORMAL SUBGROUP OF - Append(OUStringChar(cChar)); - break; case 0x22b3: // CONTAINS AS NORMAL SUBGROUP Append(OUStringChar(cChar)); break; @@ -2529,6 +2522,7 @@ void SmNodeToTextVisitor::Visit( SmMathSymbolNode* pNode ) case 0xe096: Append(u"widetilde"); break; + case 0x0362: case 0xe098: Append(u"widevec"); break;