Warn about singleton being a Reference
(cherry picked from commit e1150bd912)
This commit is contained in:
committed by
Rémi Verschelde
parent
b9641efc5c
commit
9df6edc7d7
@ -42,10 +42,7 @@ public:
|
||||
struct Singleton {
|
||||
StringName name;
|
||||
Object *ptr;
|
||||
Singleton(const StringName &p_name = StringName(), Object *p_ptr = NULL) :
|
||||
name(p_name),
|
||||
ptr(p_ptr) {
|
||||
}
|
||||
Singleton(const StringName &p_name = StringName(), Object *p_ptr = NULL);
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user