From 698e59b6e13b327bdaa1bd62a089d907d4af58fd Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Mon, 21 Nov 2022 11:01:04 +0100 Subject: Handle clang warnings The other virtual functions already had override. `#if` ended up presenting the compiler with preprocessed code that admittedly looked suspicious, although it is obviously fine if you look at the original source. Still, the brackets don't hurt much. --- src/python/include/Alpha_complex_factory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/python/include/Alpha_complex_factory.h') diff --git a/src/python/include/Alpha_complex_factory.h b/src/python/include/Alpha_complex_factory.h index 3d20aa8f..41eb72c1 100644 --- a/src/python/include/Alpha_complex_factory.h +++ b/src/python/include/Alpha_complex_factory.h @@ -106,7 +106,7 @@ class Exact_alpha_complex_dD final : public Abstract_alpha_complex { return alpha_complex_.create_complex(*simplex_tree, max_alpha_square, exact_version_, default_filtration_value); } - virtual std::size_t num_vertices() const { + virtual std::size_t num_vertices() const override { return alpha_complex_.num_vertices(); } @@ -141,7 +141,7 @@ class Inexact_alpha_complex_dD final : public Abstract_alpha_complex { return alpha_complex_.create_complex(*simplex_tree, max_alpha_square, false, default_filtration_value); } - virtual std::size_t num_vertices() const { + virtual std::size_t num_vertices() const override { return alpha_complex_.num_vertices(); } -- cgit v1.2.3