Remove Array include from dictionary.h and ustring.h.

This commit is contained in:
Lukas Tenbrink 2025-10-04 11:02:44 +02:00
parent d413181b8a
commit dc5e615a1d
7 changed files with 10 additions and 4 deletions

View file

@ -36,6 +36,8 @@
#include "core/templates/hash_map.h" #include "core/templates/hash_map.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
class Array;
// Note: In most situations, compatibility methods should be registered via ClassDB::bind_compatibility_method(). // Note: In most situations, compatibility methods should be registered via ClassDB::bind_compatibility_method().
// This class is only meant to be used in exceptional circumstances, for example, when Godot's hashing // This class is only meant to be used in exceptional circumstances, for example, when Godot's hashing
// algorithm changes and registering compatibility methods for all affect methods would be onerous. // algorithm changes and registering compatibility methods for all affect methods would be onerous.

View file

@ -33,6 +33,8 @@
#include "core/string/string_name.h" #include "core/string/string_name.h"
#include "core/string/ustring.h" #include "core/string/ustring.h"
#include <climits>
class [[nodiscard]] NodePath { class [[nodiscard]] NodePath {
struct Data { struct Data {
SafeRefCount refcount; SafeRefCount refcount;

View file

@ -31,6 +31,7 @@
#include "ustring.h" #include "ustring.h"
STATIC_ASSERT_INCOMPLETE_TYPE(class, Dictionary); STATIC_ASSERT_INCOMPLETE_TYPE(class, Dictionary);
STATIC_ASSERT_INCOMPLETE_TYPE(class, Array);
#include "core/crypto/crypto_core.h" #include "core/crypto/crypto_core.h"
#include "core/math/color.h" #include "core/math/color.h"

View file

@ -37,7 +37,6 @@
#include "core/templates/hashfuncs.h" #include "core/templates/hashfuncs.h"
#include "core/templates/vector.h" #include "core/templates/vector.h"
#include "core/typedefs.h" #include "core/typedefs.h"
#include "core/variant/array.h"
class String; class String;
template <typename T> template <typename T>

View file

@ -33,6 +33,7 @@
#include "core/object/object_id.h" #include "core/object/object_id.h"
#include "core/string/string_name.h" #include "core/string/string_name.h"
class Array;
class Object; class Object;
class Variant; class Variant;
class CallableCustom; class CallableCustom;

View file

@ -30,6 +30,8 @@
#include "dictionary.h" #include "dictionary.h"
STATIC_ASSERT_INCOMPLETE_TYPE(class, Array);
#include "core/templates/hash_map.h" #include "core/templates/hash_map.h"
#include "core/templates/safe_refcount.h" #include "core/templates/safe_refcount.h"
#include "core/variant/container_type_validate.h" #include "core/variant/container_type_validate.h"

View file

@ -30,15 +30,14 @@
#pragma once #pragma once
#include "core/string/ustring.h"
#include "core/templates/hash_map.h" #include "core/templates/hash_map.h"
#include "core/templates/local_vector.h" #include "core/templates/local_vector.h"
#include "core/templates/pair.h" #include "core/templates/pair.h"
#include "core/variant/array.h"
#include "core/variant/variant_deep_duplicate.h" #include "core/variant/variant_deep_duplicate.h"
class Array;
class StringName;
class Variant; class Variant;
struct ContainerType; struct ContainerType;
struct ContainerTypeValidate; struct ContainerTypeValidate;
struct DictionaryPrivate; struct DictionaryPrivate;