Merge pull request #111244 from Ivorforce/dont-include-array

Remove `Array` include from `dictionary.h` and `ustring.h`.
This commit is contained in:
Thaddeus Crews 2025-10-06 14:34:10 -05:00
commit f1f9f54ac3
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
7 changed files with 10 additions and 4 deletions

View file

@ -36,6 +36,8 @@
#include "core/templates/hash_map.h"
#include "core/templates/local_vector.h"
class Array;
// 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
// 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/ustring.h"
#include <climits>
class [[nodiscard]] NodePath {
struct Data {
SafeRefCount refcount;

View file

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

View file

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

View file

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

View file

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

View file

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