vcl/headless/CairoCommon.cxx | 4 ---- 1 file changed, 4 deletions(-) New commits: commit c91b61da00f418e20c28691b86f586ae10467961 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Mon Oct 21 16:43:50 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 22 12:02:29 2024 +0200
tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 674, 677 V1037 Two or more case-branches perform the same actions. Check lines: 690, 693 Change-Id: I7d9ac7ed40c6eaec4d8c6b5df0ed4299beae2f7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175345 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/headless/CairoCommon.cxx b/vcl/headless/CairoCommon.cxx index a0c780d755b5..ea0cbdccd206 100644 --- a/vcl/headless/CairoCommon.cxx +++ b/vcl/headless/CairoCommon.cxx @@ -671,8 +671,6 @@ void CairoCommon::SetROPLineColor(SalROPColor nROPColor) m_oLineColor = Color(0, 0, 0); break; case SalROPColor::N1: - m_oLineColor = Color(0xff, 0xff, 0xff); - break; case SalROPColor::Invert: m_oLineColor = Color(0xff, 0xff, 0xff); break; @@ -687,8 +685,6 @@ void CairoCommon::SetROPFillColor(SalROPColor nROPColor) m_oFillColor = Color(0, 0, 0); break; case SalROPColor::N1: - m_oFillColor = Color(0xff, 0xff, 0xff); - break; case SalROPColor::Invert: m_oFillColor = Color(0xff, 0xff, 0xff); break;