summaryrefslogtreecommitdiff
path: root/NxWidgets
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-24 14:59:00 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-24 14:59:00 -0600
commit9db3101b8c4a1f25eb08108d3e6bf7bc2156b72f (patch)
tree8153f4e77b37987873234caee70464142eb5a982 /NxWidgets
parent2bec876c8e5e6abdca9859ed56b18a7d1a71feb8 (diff)
downloadnuttx-9db3101b8c4a1f25eb08108d3e6bf7bc2156b72f.tar.gz
nuttx-9db3101b8c4a1f25eb08108d3e6bf7bc2156b72f.tar.bz2
nuttx-9db3101b8c4a1f25eb08108d3e6bf7bc2156b72f.zip
Add a do-notthin, virtual destructor to eliminate a warning
Diffstat (limited to 'NxWidgets')
-rw-r--r--NxWidgets/nxwm/include/iapplication.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/NxWidgets/nxwm/include/iapplication.hxx b/NxWidgets/nxwm/include/iapplication.hxx
index 882c5e6ea..c586e20de 100644
--- a/NxWidgets/nxwm/include/iapplication.hxx
+++ b/NxWidgets/nxwm/include/iapplication.hxx
@@ -219,6 +219,15 @@ namespace NxWM
{
public:
/**
+ * A virtual destructor is required in order to override the IApplicationFactory
+ * destructor. We do this because if we delete IApplicationFactory, we want the
+ * destructor of the class that inherits from IApplication to run, not this
+ * one.
+ */
+
+ virtual ~IApplicationFactory(void) { }
+
+ /**
* Create a new instance of an application.
*/