diff options
author | Bogdan Buzea <buzea.bogdan@libreoffice.org> | 2024-10-19 19:13:37 +0200 |
---|---|---|
committer | David Gilbert <freedesktop@treblig.org> | 2024-11-06 18:30:38 +0100 |
commit | 45fb7a2fd4fc0535687dd79d1602465f4acf4399 (patch) | |
tree | 7a6cb2726e12ec0c242807cb4af562bb61671784 /starmath/source | |
parent | a6a68d655ed3474ed0526c2991db34b8d6d0a8ff (diff) |
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 241, 445
V1037 Two or more case-branches perform the same actions. Check lines: 283, 485
V1037 Two or more case-branches perform the same actions. Check lines: 323, 439
Change-Id: I3540ee8b2d545dcd3bea1443f0d0c43419ae7721
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175223
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/mathtype.cxx | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx index 64989e7993ca..d78879ee7087 100644 --- a/starmath/source/mathtype.cxx +++ b/starmath/source/mathtype.cxx @@ -238,6 +238,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUStringBuffer &rRet,sal_uInt8 nVers pC = " dotslow "; break; case 0x2022: + case 0x22c5: pC = " cdot "; break; case 0x2102: @@ -280,6 +281,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUStringBuffer &rRet,sal_uInt8 nVers pC = " rightarrow "; break; case 0x0362: + case 0xe098: pC = " widevec "; break; case 0x2193: @@ -320,6 +322,16 @@ bool MathType::LookupChar(sal_Unicode nChar,OUStringBuffer &rRet,sal_uInt8 nVers break; case 0x2208: // in case 0x2209: // notin + case 0x2282: // subset + case 0x2283: // supset + case 0x2284: // nsubset + case 0x2285: // nsupset + case 0x2286: // subseteq + case 0x2287: // supseteq + case 0x2288: // nsubseteq + case 0x2289: // nsupseteq + case 0x22b2: // NORMAL SUBGROUP OF + case 0x22b3: // CONTAINS AS NORMAL SUBGROUP rRet.append(" func " + OUStringChar(nChar) + " "); break; case 0x220d: // owns @@ -425,25 +437,9 @@ bool MathType::LookupChar(sal_Unicode nChar,OUStringBuffer &rRet,sal_uInt8 nVers case 0x2281: pC = " nsucc "; break; - - case 0x2282: // subset - case 0x2283: // supset - case 0x2284: // nsubset - case 0x2285: // nsupset - case 0x2286: // subseteq - case 0x2287: // supseteq - case 0x2288: // nsubseteq - case 0x2289: // nsupseteq - case 0x22b2: // NORMAL SUBGROUP OF - case 0x22b3: // CONTAINS AS NORMAL SUBGROUP - rRet.append(" func " + OUStringChar(nChar) + " "); - break; case 0x22a5: pC = " ortho "; break; - case 0x22c5: - pC = " cdot "; - break; case 0x22ee: pC = " dotsvert "; break; @@ -481,9 +477,6 @@ bool MathType::LookupChar(sal_Unicode nChar,OUStringBuffer &rRet,sal_uInt8 nVers case 0xe096: pC = " widetilde "; break; - case 0xe098: - pC = " widevec "; - break; case 0xE421: pC = " geslant "; break; |