Remove whitespace lines
This commit is contained in:
@@ -3,62 +3,62 @@
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
|
||||
|
||||
class Object {
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
virtual ~Object () {}
|
||||
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Object (bool has_initial_ref = false) : ref_count (has_initial_ref ? 1 : 0) {}
|
||||
|
||||
|
||||
Object *grab () {
|
||||
|
||||
|
||||
ref_count++;
|
||||
|
||||
return this;
|
||||
|
||||
|
||||
return this;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Object *IncRef () {
|
||||
|
||||
|
||||
ref_count++;
|
||||
return this;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void DecRef () {
|
||||
|
||||
|
||||
ref_count--;
|
||||
|
||||
|
||||
if (ref_count <= 0) {
|
||||
|
||||
|
||||
delete this;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void drop () {
|
||||
|
||||
ref_count--;
|
||||
|
||||
|
||||
void drop () {
|
||||
|
||||
ref_count--;
|
||||
|
||||
if (ref_count <= 0) {
|
||||
delete this;
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
int ref_count;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user