Rename Reference to RefCounted

This commit is contained in:
Pedro J. Estébanez
2021-06-04 18:03:15 +02:00
parent fbb5a541ef
commit 04688b92ff
270 changed files with 926 additions and 926 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="RegEx" inherits="Reference" version="4.0">
<class name="RegEx" inherits="RefCounted" version="4.0">
<brief_description>
Class for searching text for patterns using regular expressions.
</brief_description>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="RegExMatch" inherits="Reference" version="4.0">
<class name="RegExMatch" inherits="RefCounted" version="4.0">
<brief_description>
Contains the results of a [RegEx] search.
</brief_description>

View File

@ -31,15 +31,15 @@
#ifndef REGEX_H
#define REGEX_H
#include "core/object/reference.h"
#include "core/object/ref_counted.h"
#include "core/string/ustring.h"
#include "core/templates/map.h"
#include "core/templates/vector.h"
#include "core/variant/array.h"
#include "core/variant/dictionary.h"
class RegExMatch : public Reference {
GDCLASS(RegExMatch, Reference);
class RegExMatch : public RefCounted {
GDCLASS(RegExMatch, RefCounted);
struct Range {
int start = 0;
@ -68,8 +68,8 @@ public:
int get_end(const Variant &p_name) const;
};
class RegEx : public Reference {
GDCLASS(RegEx, Reference);
class RegEx : public RefCounted {
GDCLASS(RegEx, RefCounted);
void *general_ctx;
void *code = nullptr;