Merge pull request #27597 from marxin/fix-Wnon-virtual-dtor-warnings

Fix -Wnon-virtual-dtor warnings.
This commit is contained in:
Rémi Verschelde 2019-04-02 18:25:02 +02:00 committed by GitHub
commit 25c1363a11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -205,6 +205,8 @@ public:
static ScriptCodeCompletionCache *get_singleton() { return singleton; }
ScriptCodeCompletionCache();
virtual ~ScriptCodeCompletionCache() {}
};
class ScriptLanguage {

View file

@ -58,7 +58,7 @@ public:
virtual bool is_using_vsync() const = 0;
ContextGL();
~ContextGL();
virtual ~ContextGL();
};
#endif

View file

@ -683,6 +683,7 @@ protected:
TextEdit *text_editor;
public:
virtual ~SyntaxHighlighter() {}
virtual void _update_cache() = 0;
virtual Map<int, TextEdit::HighlighterInfo> _get_line_syntax_highlighting(int p_line) = 0;