summaryrefslogtreecommitdiff
path: root/core/ref_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/ref_ptr.h')
-rw-r--r--core/ref_ptr.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/core/ref_ptr.h b/core/ref_ptr.h
index c9824639dc..04c7bb51ed 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