mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Change StringName.operator const void * to explicit operator bool.
This commit is contained in:
parent
7b9c5122fa
commit
e989d7bd89
2 changed files with 2 additions and 2 deletions
|
|
@ -872,7 +872,7 @@ static String _make_arguments_hint(const GDScriptParser::FunctionNode *p_functio
|
|||
|
||||
static void _get_directory_contents(EditorFileSystemDirectory *p_dir, HashMap<String, ScriptLanguage::CodeCompletionOption> &r_list, const StringName &p_required_type = StringName()) {
|
||||
const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\"";
|
||||
const bool requires_type = p_required_type;
|
||||
const bool requires_type = !p_required_type.is_empty();
|
||||
|
||||
for (int i = 0; i < p_dir->get_file_count(); i++) {
|
||||
if (requires_type && !ClassDB::is_parent_class(p_dir->get_file_type(i), p_required_type)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue