mirror of https://github.com/CGAL/cgal
no need for a variable for the exception
This commit is contained in:
parent
64787d9b73
commit
28b5b64347
|
|
@ -200,7 +200,7 @@ void test_bitstream_descartes() {
|
|||
try {
|
||||
Poly_int1 sq_f = descartes.square_free_part();
|
||||
assert(false);
|
||||
} catch (CGAL::internal::Virtual_method_exception ex) {
|
||||
} catch (const CGAL::internal::Virtual_method_exception&) {
|
||||
// Expected
|
||||
}
|
||||
|
||||
|
|
@ -304,13 +304,13 @@ void test_bitstream_descartes() {
|
|||
int k = descartes.degree_of_gcd();
|
||||
(void)k;
|
||||
assert(false);
|
||||
} catch (CGAL::internal::Virtual_method_exception ex) {
|
||||
} catch (const CGAL::internal::Virtual_method_exception&) {
|
||||
// Expected
|
||||
}
|
||||
try {
|
||||
Poly_int1 sq_f = descartes.square_free_part();
|
||||
assert(false);
|
||||
} catch (CGAL::internal::Virtual_method_exception ex) {
|
||||
} catch (const CGAL::internal::Virtual_method_exception&) {
|
||||
// Expected
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue