From 56e575369b8c6b5cbfc11671d99690372f02d6dc Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 Nov 2019 18:47:04 +0100 Subject: [PATCH] missing override markers --- archimedean.cpp | 10 +++++----- binary-tiling.cpp | 2 +- crystal.cpp | 2 +- euclid.cpp | 2 +- reg3.cpp | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/archimedean.cpp b/archimedean.cpp index 9e2afb36..af273c8a 100644 --- a/archimedean.cpp +++ b/archimedean.cpp @@ -441,7 +441,7 @@ transmatrix adjcell_matrix(heptagon *h, int d); struct hrmap_archimedean : hrmap { map eucdata; heptagon *origin; - heptagon *getOrigin() { return origin; } + heptagon *getOrigin() override { return origin; } hrmap_archimedean() { dynamicval curmap(currentmap, this); @@ -530,9 +530,9 @@ struct hrmap_archimedean : hrmap { current_altmap = NULL; } } - void verify() { } + void verify() override { } - heptagon *create_step(heptagon *h, int d) { + heptagon *create_step(heptagon *h, int d) override { DEBB(DF_GEOM, (format("%p.%d ~ ?\n", h, d))); @@ -607,7 +607,7 @@ struct hrmap_archimedean : hrmap { return hnew; } - void draw() { + void draw() override { dq::visited.clear(); dq::enqueue(centerover->master, cview()); @@ -663,7 +663,7 @@ struct hrmap_archimedean : hrmap { return gm * where; } - ld spin_angle(cell *c, int d) { + ld spin_angle(cell *c, int d) override { if(PURE) { auto& t1 = arcm::current.get_triangle(c->master, d-1); return -(t1.first + M_PI / c->type); diff --git a/binary-tiling.cpp b/binary-tiling.cpp index 9c96f28e..3504d0c8 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -508,7 +508,7 @@ EX namespace binary { return -(d+2)*M_PI/4; } - transmatrix adj(heptagon *h, int dir) { + transmatrix adj(heptagon *h, int dir) override { if(geometry == gBinaryTiling) switch(dir) { case bd_up: return xpush(-log(2)); case bd_left: return parabolic(-1); diff --git a/crystal.cpp b/crystal.cpp index 115db741..a49100a3 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -523,7 +523,7 @@ struct hrmap_crystal : hrmap_standard { #if MAXMDIM >= 4 map adjs; - transmatrix adj(heptagon *h, int d) { + transmatrix adj(heptagon *h, int d) override { auto co = hcoords[h]; int id = 0; for(int a=0; a<4; a++) id = (2*id) + ((co[a]>>1) & 1); diff --git a/euclid.cpp b/euclid.cpp index 7af55c37..d5d407f9 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -166,7 +166,7 @@ EX namespace euclid3 { return res; } - void draw() { + void draw() override { dq::visited_by_matrix.clear(); dq::enqueue_by_matrix(centerover->master, cview() * master_relative(centerover, true)); diff --git a/reg3.cpp b/reg3.cpp index c419c70f..e0947612 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -869,7 +869,7 @@ EX namespace reg3 { } } - transmatrix adj(heptagon *h, int d) { + transmatrix adj(heptagon *h, int d) override { #if CAP_FIELD if(quotient_map) return quotient_map->adj(h, d); else