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 {
|
try {
|
||||||
Poly_int1 sq_f = descartes.square_free_part();
|
Poly_int1 sq_f = descartes.square_free_part();
|
||||||
assert(false);
|
assert(false);
|
||||||
} catch (CGAL::internal::Virtual_method_exception ex) {
|
} catch (const CGAL::internal::Virtual_method_exception&) {
|
||||||
// Expected
|
// Expected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -304,13 +304,13 @@ void test_bitstream_descartes() {
|
||||||
int k = descartes.degree_of_gcd();
|
int k = descartes.degree_of_gcd();
|
||||||
(void)k;
|
(void)k;
|
||||||
assert(false);
|
assert(false);
|
||||||
} catch (CGAL::internal::Virtual_method_exception ex) {
|
} catch (const CGAL::internal::Virtual_method_exception&) {
|
||||||
// Expected
|
// Expected
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Poly_int1 sq_f = descartes.square_free_part();
|
Poly_int1 sq_f = descartes.square_free_part();
|
||||||
assert(false);
|
assert(false);
|
||||||
} catch (CGAL::internal::Virtual_method_exception ex) {
|
} catch (const CGAL::internal::Virtual_method_exception&) {
|
||||||
// Expected
|
// Expected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue