Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@ -40,7 +40,7 @@ class GDScriptTextDocument : public RefCounted {
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
|
||||
FileAccess *file_checker = nullptr;
|
||||
Ref<FileAccess> file_checker;
|
||||
|
||||
void didOpen(const Variant &p_param);
|
||||
void didClose(const Variant &p_param);
|
||||
@ -75,7 +75,6 @@ public:
|
||||
void initialize();
|
||||
|
||||
GDScriptTextDocument();
|
||||
virtual ~GDScriptTextDocument();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user