Skip to content

Commit

Permalink
Mark point generators final
Browse files Browse the repository at this point in the history
They call a virtual function from the constructor.  Marking them final
suppresses the clang warning about this.
  • Loading branch information
jbytheway committed Jul 2, 2020
1 parent 455270d commit b4d4219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cata_generators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "point.h"
#include "rng.h"

class RandomPointGenerator :
class RandomPointGenerator final :
public Catch::Generators::IGenerator<point>
{
public:
Expand All @@ -27,7 +27,7 @@ class RandomPointGenerator :
point current_point;
};

class RandomTripointGenerator :
class RandomTripointGenerator final :
public Catch::Generators::IGenerator<tripoint>
{
public:
Expand Down

0 comments on commit b4d4219

Please sign in to comment.