Fix -Wnon-virtual-dtor warnings.
Example of the warning: ./core/script_language.h:198:7: warning: 'class ScriptCodeCompletionCache' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
This commit is contained in:
parent
612a109b81
commit
f9f2413e69
|
@ -205,6 +205,8 @@ public:
|
||||||
static ScriptCodeCompletionCache *get_singleton() { return singleton; }
|
static ScriptCodeCompletionCache *get_singleton() { return singleton; }
|
||||||
|
|
||||||
ScriptCodeCompletionCache();
|
ScriptCodeCompletionCache();
|
||||||
|
|
||||||
|
virtual ~ScriptCodeCompletionCache() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class ScriptLanguage {
|
class ScriptLanguage {
|
||||||
|
|
|
@ -58,7 +58,7 @@ public:
|
||||||
virtual bool is_using_vsync() const = 0;
|
virtual bool is_using_vsync() const = 0;
|
||||||
|
|
||||||
ContextGL();
|
ContextGL();
|
||||||
~ContextGL();
|
virtual ~ContextGL();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -683,6 +683,7 @@ protected:
|
||||||
TextEdit *text_editor;
|
TextEdit *text_editor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
virtual ~SyntaxHighlighter() {}
|
||||||
virtual void _update_cache() = 0;
|
virtual void _update_cache() = 0;
|
||||||
virtual Map<int, TextEdit::HighlighterInfo> _get_line_syntax_highlighting(int p_line) = 0;
|
virtual Map<int, TextEdit::HighlighterInfo> _get_line_syntax_highlighting(int p_line) = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue