no need for a variable for the exception

This commit is contained in:
Andreas Fabri 2013-02-12 19:17:36 +01:00
parent 64787d9b73
commit 28b5b64347
1 changed files with 3 additions and 3 deletions

View File

@ -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
} }