diff options
| author | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-05 16:44:50 +0100 |
| commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
| tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /core/ref_ptr.h | |
| parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
| download | godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.gz godot-5dbf1809c6e3e905b94b8764e99491e608122261.tar.zst godot-5dbf1809c6e3e905b94b8764e99491e608122261.zip | |
Diffstat (limited to 'core/ref_ptr.h')
| -rw-r--r-- | core/ref_ptr.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/core/ref_ptr.h b/core/ref_ptr.h index c9824639d..04c7bb51e 100644 --- a/core/ref_ptr.h +++ b/core/ref_ptr.h @@ -36,27 +36,24 @@ #include "rid.h" - class RefPtr { enum { - DATASIZE=sizeof(void*) //*4 -ref was shrunk + DATASIZE = sizeof(void *) //*4 -ref was shrunk }; mutable char data[DATASIZE]; // too much probably, virtual class + pointer public: - bool is_null() const; - void operator=(const RefPtr& p_other); - bool operator==(const RefPtr& p_other) const; + void operator=(const RefPtr &p_other); + bool operator==(const RefPtr &p_other) const; RID get_rid() const; void unref(); _FORCE_INLINE_ void *get_data() const { return data; } - RefPtr(const RefPtr& p_other); + RefPtr(const RefPtr &p_other); RefPtr(); ~RefPtr(); - }; #endif // REF_PTR_H |
