mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-15 09:23:24 +00:00
Add a do-notthin, virtual destructor to eliminate a warning
This commit is contained in:
parent
061e95bd91
commit
e5ff9a4798
1 changed files with 9 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue