summaryrefslogtreecommitdiffstats
path: root/include/core/Array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/Array.hpp')
-rw-r--r--include/core/Array.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/core/Array.hpp b/include/core/Array.hpp
index 3d13914..84dc012 100644
--- a/include/core/Array.hpp
+++ b/include/core/Array.hpp
@@ -58,6 +58,8 @@ class Array {
godot_array _godot_array;
friend class Variant;
+ friend class Dictionary;
+ friend class String;
inline explicit Array(const godot_array &other) {
_godot_array = other;
}
@@ -88,7 +90,7 @@ public:
Variant &operator[](const int idx);
- Variant operator[](const int idx) const;
+ const Variant &operator[](const int idx) const;
void append(const Variant &v);