From 6375bb1bba755a03884d26c4b434b51ab7ccdff4 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Fri, 6 Apr 2018 10:23:12 +0100 Subject: [PATCH] Add breaks --- .../CGAL/Homogeneous/Aff_transformationH2.h | 18 ++++++++++++++++++ .../CGAL/Homogeneous/Aff_transformationH3.h | 6 ++++++ .../CGAL/Rotational_sweep_visibility_2.h | 2 ++ 3 files changed, 26 insertions(+) diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH2.h b/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH2.h index ee976ddeeb6..c14000e1b02 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH2.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH2.h @@ -792,6 +792,7 @@ Aff_transformation_repH2::homogeneous(int i, int j) const case 2: return c; default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return d; @@ -799,6 +800,7 @@ Aff_transformation_repH2::homogeneous(int i, int j) const case 2: return f; default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return RT(0); @@ -834,6 +836,7 @@ Translation_repH2::homogeneous(int i, int j) const case 2: return _tv.hx(); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return RT(0); @@ -841,6 +844,7 @@ Translation_repH2::homogeneous(int i, int j) const case 2: return _tv.hy(); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return RT(0); @@ -867,6 +871,7 @@ Translation_repH2::cartesian(int i, int j) const case 2: return _tv.x(); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return FT(0); @@ -874,6 +879,7 @@ Translation_repH2::cartesian(int i, int j) const case 2: return _tv.y(); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return FT(0); @@ -901,6 +907,7 @@ homogeneous(int i, int j) const case 2: return RT(0); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return _sin; @@ -908,6 +915,7 @@ homogeneous(int i, int j) const case 2: return RT(0); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return RT(0); @@ -935,6 +943,7 @@ cartesian(int i, int j) const case 2: return FT(0); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return FT(_sin) / FT(_den); @@ -942,6 +951,7 @@ cartesian(int i, int j) const case 2: return FT(0); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return FT(0); @@ -969,6 +979,7 @@ homogeneous(int i, int j) const case 2: return RT(0); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return RT(0); @@ -976,6 +987,7 @@ homogeneous(int i, int j) const case 2: return RT(0); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return RT(0); @@ -1003,6 +1015,7 @@ cartesian(int i, int j) const case 2: return FT(0); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return FT(0); @@ -1010,6 +1023,7 @@ cartesian(int i, int j) const case 2: return FT(0); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return FT(0); @@ -1038,6 +1052,7 @@ homogeneous(int i, int j) const case 2: return l.a()*l.c()*mRT2; default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return l.a()*l.b()*mRT2; @@ -1045,6 +1060,7 @@ homogeneous(int i, int j) const case 2: return l.b()*l.c()*mRT2; default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return RT(0); @@ -1073,6 +1089,7 @@ cartesian(int i, int j) const case 2: return FT( homogeneous(0,2)) / de; default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return FT( homogeneous(1,0)) / de; @@ -1080,6 +1097,7 @@ cartesian(int i, int j) const case 2: return FT( homogeneous(1,2)) / de; default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return FT(0); diff --git a/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH3.h b/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH3.h index 8513982844f..11f699ded22 100644 --- a/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH3.h +++ b/Homogeneous_kernel/include/CGAL/Homogeneous/Aff_transformationH3.h @@ -553,6 +553,7 @@ homogeneous(int i, int j) const case 3: return t03; default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return t10; @@ -561,6 +562,7 @@ homogeneous(int i, int j) const case 3: return t13; default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return t20; @@ -569,6 +571,7 @@ homogeneous(int i, int j) const case 3: return t23; default: CGAL_assume(false); } + break; case 3: switch (j) { case 0: return RT0; @@ -702,6 +705,7 @@ Translation_repH3::homogeneous(int i, int j) const case 3: return tv.hx(); default: CGAL_assume(false); } + break; case 1: switch (j) { case 0: return RT0; @@ -710,6 +714,7 @@ Translation_repH3::homogeneous(int i, int j) const case 3: return tv.hy(); default: CGAL_assume(false); } + break; case 2: switch (j) { case 0: return RT0; @@ -718,6 +723,7 @@ Translation_repH3::homogeneous(int i, int j) const case 3: return tv.hz(); default: CGAL_assume(false); } + break; case 3: switch (j) { case 0: return RT0; diff --git a/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h b/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h index 1d25c4d7bff..f00bb75a9f0 100644 --- a/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h +++ b/Visibility_2/include/CGAL/Rotational_sweep_visibility_2.h @@ -207,6 +207,7 @@ private: return (Visibility_2::orientation_2(geom_traits, s2, t2, q) == Visibility_2::orientation_2(geom_traits, s2, t2, s1)); } + break; case RIGHT_TURN: switch (Visibility_2::orientation_2(geom_traits, s1, t1, s2)) { case COLLINEAR: @@ -225,6 +226,7 @@ private: return true; default: CGAL_assume(false); } + break; case LEFT_TURN: switch (Visibility_2::orientation_2(geom_traits, s1, t1, s2)) { case COLLINEAR: