From 872191736520c8689394ce9ebd91b2f7dfd43f44 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Jul 2020 14:01:55 +0200 Subject: Fix publicly accessible non-virtual destructor warning --- pugl/pugl.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pugl') 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 +class View : protected detail::Wrapper { public: /** @@ -573,6 +573,9 @@ public: @} */ + PuglView* cobj() { return Wrapper::cobj(); } + const PuglView* cobj() const { return Wrapper::cobj(); } + private: template static const Typed& typedEventRef(const Base& base) -- cgit v1.2.1