summaryrefslogtreecommitdiff
path: root/src/Tangential_complex/include/gudhi
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2022-11-21 11:01:04 +0100
committerMarc Glisse <marc.glisse@inria.fr>2022-11-21 11:01:04 +0100
commit698e59b6e13b327bdaa1bd62a089d907d4af58fd (patch)
tree11f62b4e16046d2f81b06e4aa42c35f8a91cb27d /src/Tangential_complex/include/gudhi
parentf361ecc561ea9a3cc8a4d8408bb8e094f211247e (diff)
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.
Diffstat (limited to 'src/Tangential_complex/include/gudhi')
-rw-r--r--src/Tangential_complex/include/gudhi/Tangential_complex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Tangential_complex/include/gudhi/Tangential_complex.h b/src/Tangential_complex/include/gudhi/Tangential_complex.h
index 56a24af0..b448db2d 100644
--- a/src/Tangential_complex/include/gudhi/Tangential_complex.h
+++ b/src/Tangential_complex/include/gudhi/Tangential_complex.h
@@ -345,10 +345,11 @@ class Tangential_complex {
m_stars.resize(m_points.size());
m_squared_star_spheres_radii_incl_margin.resize(m_points.size(), FT(-1));
#ifdef GUDHI_TC_PERTURB_POSITION
- if (m_points.empty())
+ if (m_points.empty()) {
m_translations.clear();
- else
+ } else {
m_translations.resize(m_points.size(), m_k.construct_vector_d_object()(m_ambient_dim));
+ }
#if defined(GUDHI_USE_TBB)
delete[] m_p_perturb_mutexes;
m_p_perturb_mutexes = new Mutex_for_perturb[m_points.size()];