Skip to content

Commit

Permalink
Add a virtual destructor for ColourProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier-sc authored and tobiasmaier committed Jul 19, 2022
1 parent 2872e7d commit 5118b22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/pango_opengl/include/pangolin/gl/colour.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ class ColourProvider

/// Reset colours
virtual void Reset() = 0;

/// Virtual destructor to ensure correct destruction of derived classes
virtual ~ColourProvider() = default;
};

/// A ColourWheel is like a continuous colour palate that can be sampled.
Expand Down

0 comments on commit 5118b22

Please sign in to comment.