mirror of https://github.com/CGAL/cgal
yet more fallthrough fixes
This commit is contained in:
parent
3ff0c6cc04
commit
b5dc02cb24
|
|
@ -790,20 +790,24 @@ Aff_transformation_repH2<R>::homogeneous(int i, int j) const
|
|||
case 0: return a;
|
||||
case 1: return b;
|
||||
case 2: return c;
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 1: switch (j)
|
||||
{
|
||||
case 0: return d;
|
||||
case 1: return e;
|
||||
case 2: return f;
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 2: switch (j)
|
||||
{
|
||||
case 0: return RT(0);
|
||||
case 1: return RT(0);
|
||||
case 2: return g;
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
}
|
||||
CGAL_assume(false);
|
||||
return RT(0);
|
||||
}
|
||||
|
||||
|
|
@ -828,20 +832,24 @@ Translation_repH2<R>::homogeneous(int i, int j) const
|
|||
case 0: return _tv.hw();
|
||||
case 1: return RT(0);
|
||||
case 2: return _tv.hx();
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 1: switch (j)
|
||||
{
|
||||
case 0: return RT(0);
|
||||
case 1: return _tv.hw();
|
||||
case 2: return _tv.hy();
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 2: switch (j)
|
||||
{
|
||||
case 0: return RT(0);
|
||||
case 1: return RT(0);
|
||||
case 2: return _tv.hw();
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
}
|
||||
CGAL_assume(false);
|
||||
return RT(0);
|
||||
}
|
||||
|
||||
|
|
@ -857,20 +865,24 @@ Translation_repH2<R>::cartesian(int i, int j) const
|
|||
case 0: return FT(1);
|
||||
case 1: return FT(0);
|
||||
case 2: return _tv.x();
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 1: switch (j)
|
||||
{
|
||||
case 0: return FT(0);
|
||||
case 1: return FT(1);
|
||||
case 2: return _tv.y();
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 2: switch (j)
|
||||
{
|
||||
case 0: return FT(0);
|
||||
case 1: return FT(0);
|
||||
case 2: return FT(1);
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
}
|
||||
CGAL_assume(false);
|
||||
return FT(0);
|
||||
}
|
||||
|
||||
|
|
@ -887,20 +899,24 @@ homogeneous(int i, int j) const
|
|||
case 0: return _cos;
|
||||
case 1: return - _sin;
|
||||
case 2: return RT(0);
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 1: switch (j)
|
||||
{
|
||||
case 0: return _sin;
|
||||
case 1: return _cos;
|
||||
case 2: return RT(0);
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
case 2: switch (j)
|
||||
{
|
||||
case 0: return RT(0);
|
||||
case 1: return RT(0);
|
||||
case 2: return _den;
|
||||
default: CGAL_assume(false);
|
||||
}
|
||||
}
|
||||
CGAL_assume(false);
|
||||
return RT(0);
|
||||
}
|
||||
|
||||
|
|
@ -1002,8 +1018,8 @@ cartesian(int i, int j) const
|
|||
default: CGAL_assume(false);
|
||||
}
|
||||
}
|
||||
CGAL_assume(false);
|
||||
return FT(0);
|
||||
CGAL_assume(false);
|
||||
return FT(0);
|
||||
}
|
||||
|
||||
template < class R >
|
||||
|
|
|
|||
|
|
@ -245,6 +245,7 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
CGAL_assume(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue