diff options
| author | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2017-03-19 00:36:26 +0100 |
| commit | f8db8a3faa30b71dca33ced38be16d3f93f43e8a (patch) | |
| tree | 3b798318132cca7eccfbca5818ab55656a2896d7 /core/ref_ptr.h | |
| parent | 1d418afe863c9e553b69174ce63aef203c46d2f0 (diff) | |
| download | godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.gz godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.tar.zst godot-f8db8a3faa30b71dca33ced38be16d3f93f43e8a.zip | |
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6e3e905b94b8764e99491e608122261.
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 |
