Permalink
Browse files

Fixed warnings about lack of virtual destructor

  • Loading branch information...
1 parent cfa8c0f commit 1a2d811affe41e76b4f726dca4af504a310ce4e5 @bmcdorman bmcdorman committed Jan 11, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 include/lexer/lexer_factory.hpp
View
9 include/lexer/lexer_factory.hpp
@@ -34,7 +34,7 @@ namespace Kiss
{
namespace Lexer
{
- struct Base;
+ class Base;
class Constructor : public QObject
{
@@ -57,15 +57,20 @@ namespace Kiss
QString m_name;
};
- struct Base
+ class Base
{
+ public:
Base(QsciLexer *lexer, const Constructor *constructor)
: m_lexer(lexer),
m_constructor(constructor),
m_apis(lexer)
{
}
+ virtual ~Base()
+ {
+ }
+
const Constructor *constructor() const
{
return m_constructor;

0 comments on commit 1a2d811

Please sign in to comment.