mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 10:44:26 +00:00
Fix warnings on virtual methods [-Woverloaded-virtual] [-Wdelete-non-virtual-dtor]
Fixes the following Clang 7 warnings: ``` editor/editor_help.h:123:7: warning: 'EditorHelpIndex::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/editor_help.h:95:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/editor_help.h:96:7: warning: 'EditorHelpSearch::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/plugins/curve_editor_plugin.h:141:15: warning: 'CurvePreviewGenerator::generate' hides overloaded virtual function [-Woverloaded-virtual] editor/plugins/script_editor_plugin.h:70:7: warning: 'ScriptEditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual] editor/quick_open.h:69:7: warning: 'EditorQuickOpen::popup' hides overloaded virtual function [-Woverloaded-virtual] main/tests/test_io.cpp:53:15: warning: 'TestIO::TestMainLoop::input_event' hides overloaded virtual function [-Woverloaded-virtual] servers/audio/effects/audio_effect_record.h:69:15: warning: 'AudioEffectRecordInstance::process_silence' hides overloaded virtual function [-Woverloaded-virtual] core/os/memory.h:119:2: warning: destructor called on non-final 'ContextGL_X11' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'EditorScriptCodeCompletionCache' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'Engine' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'PhysicalBone::JointData' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerScene' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] core/os/memory.h:119:2: warning: destructor called on non-final 'VisualServerViewport' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor] ```
This commit is contained in:
parent
0cc3aff8ed
commit
c026e3957a
23 changed files with 47 additions and 39 deletions
|
|
@ -96,7 +96,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
RES get_cached_resource(const String &p_path) {
|
||||
virtual RES get_cached_resource(const String &p_path) {
|
||||
|
||||
Map<String, Cache>::Element *E = cached.find(p_path);
|
||||
if (!E) {
|
||||
|
|
@ -134,9 +134,11 @@ public:
|
|||
max_cache_size = 128;
|
||||
max_time_cache = 5 * 60 * 1000; //minutes, five
|
||||
}
|
||||
|
||||
virtual ~EditorScriptCodeCompletionCache() {}
|
||||
};
|
||||
|
||||
void ScriptEditorQuickOpen::popup(const Vector<String> &p_functions, bool p_dontclear) {
|
||||
void ScriptEditorQuickOpen::popup_dialog(const Vector<String> &p_functions, bool p_dontclear) {
|
||||
|
||||
popup_centered_ratio(0.6);
|
||||
if (p_dontclear)
|
||||
|
|
@ -968,11 +970,11 @@ void ScriptEditor::_menu_option(int p_option) {
|
|||
} break;
|
||||
case SEARCH_HELP: {
|
||||
|
||||
help_search_dialog->popup();
|
||||
help_search_dialog->popup_dialog();
|
||||
} break;
|
||||
case SEARCH_CLASSES: {
|
||||
|
||||
help_index->popup();
|
||||
help_index->popup_dialog();
|
||||
} break;
|
||||
case SEARCH_WEBSITE: {
|
||||
|
||||
|
|
@ -1204,7 +1206,7 @@ void ScriptEditor::_menu_option(int p_option) {
|
|||
|
||||
case SEARCH_CLASSES: {
|
||||
|
||||
help_index->popup();
|
||||
help_index->popup_dialog();
|
||||
help_index->call_deferred("select_class", help->get_class());
|
||||
} break;
|
||||
case HELP_SEARCH_FIND: {
|
||||
|
|
@ -2727,11 +2729,11 @@ void ScriptEditor::set_live_auto_reload_running_scripts(bool p_enabled) {
|
|||
}
|
||||
|
||||
void ScriptEditor::_help_index(String p_text) {
|
||||
help_index->popup();
|
||||
help_index->popup_dialog();
|
||||
}
|
||||
|
||||
void ScriptEditor::_help_search(String p_text) {
|
||||
help_search_dialog->popup(p_text);
|
||||
help_search_dialog->popup_dialog(p_text);
|
||||
}
|
||||
|
||||
void ScriptEditor::_open_script_request(const String &p_path) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue