aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-04 14:01:55 +0200
committerDavid Robillard <d@drobilla.net>2020-07-04 14:01:55 +0200
commit872191736520c8689394ce9ebd91b2f7dfd43f44 (patch)
treeb449a4683d86dfa9dfa904935f0b65cfa7fb07e2
parentd2c84ddf769f3c89c1e08e60c7b8694f308c64bf (diff)
downloadpugl-872191736520c8689394ce9ebd91b2f7dfd43f44.tar.gz
pugl-872191736520c8689394ce9ebd91b2f7dfd43f44.tar.bz2
pugl-872191736520c8689394ce9ebd91b2f7dfd43f44.zip
Fix publicly accessible non-virtual destructor warning
-rw-r--r--pugl/pugl.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp
index f1aef2f..90036e4 100644
--- a/pugl/pugl.hpp
+++ b/pugl/pugl.hpp
@@ -371,7 +371,7 @@ enum class Cursor {
static_assert(Cursor(PUGL_CURSOR_UP_DOWN) == Cursor::upDown, "");
/// @copydoc PuglView
-class View : public detail::Wrapper<PuglView, puglFreeView>
+class View : protected detail::Wrapper<PuglView, puglFreeView>
{
public:
/**
@@ -573,6 +573,9 @@ public:
@}
*/
+ PuglView* cobj() { return Wrapper::cobj(); }
+ const PuglView* cobj() const { return Wrapper::cobj(); }
+
private:
template<class Typed, class Base>
static const Typed& typedEventRef(const Base& base)