From e5ff9a4798a72c96bb9eefd323c7c3efd39e44d5 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 24 Jul 2014 14:59:00 -0600 Subject: [PATCH] Add a do-notthin, virtual destructor to eliminate a warning --- nxwm/include/iapplication.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nxwm/include/iapplication.hxx b/nxwm/include/iapplication.hxx index 882c5e6ea..c586e20de 100644 --- a/nxwm/include/iapplication.hxx +++ b/nxwm/include/iapplication.hxx @@ -218,6 +218,15 @@ namespace NxWM class IApplicationFactory { 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. */