1
This commit is contained in:
parent
1ed072e494
commit
d28ebf1009
@ -44,6 +44,7 @@ CreatureWeakPtr::CreatureWeakPtr(const CreatureWeakPtr& x)
|
||||
if (x.ptr_) {
|
||||
Attach(x.ptr_);
|
||||
}
|
||||
++Perf::Instance()->c_wptr_num;
|
||||
}
|
||||
|
||||
CreatureWeakPtr::CreatureWeakPtr(CreatureWeakPtr&& x)
|
||||
@ -53,6 +54,7 @@ CreatureWeakPtr::CreatureWeakPtr(CreatureWeakPtr&& x)
|
||||
Attach(x.ptr_);
|
||||
x.Detach();
|
||||
}
|
||||
++Perf::Instance()->c_wptr_num;
|
||||
}
|
||||
|
||||
CreatureWeakPtr& CreatureWeakPtr::operator=(const CreatureWeakPtr& x)
|
||||
@ -159,6 +161,7 @@ RoomObstacleWeakPtr::RoomObstacleWeakPtr(const RoomObstacleWeakPtr& x)
|
||||
if (x.ptr_) {
|
||||
Attach(x.ptr_);
|
||||
}
|
||||
++Perf::Instance()->o_wptr_num;
|
||||
}
|
||||
|
||||
RoomObstacleWeakPtr::RoomObstacleWeakPtr(RoomObstacleWeakPtr&& x)
|
||||
@ -168,6 +171,7 @@ RoomObstacleWeakPtr::RoomObstacleWeakPtr(RoomObstacleWeakPtr&& x)
|
||||
Attach(x.ptr_);
|
||||
x.Detach();
|
||||
}
|
||||
++Perf::Instance()->o_wptr_num;
|
||||
}
|
||||
|
||||
RoomObstacleWeakPtr& RoomObstacleWeakPtr::operator=(const RoomObstacleWeakPtr& x)
|
||||
@ -271,6 +275,7 @@ EntityWeakPtr::EntityWeakPtr(const EntityWeakPtr& x)
|
||||
if (x.ptr_) {
|
||||
Attach(x.ptr_);
|
||||
}
|
||||
++Perf::Instance()->e_wptr_num;
|
||||
}
|
||||
|
||||
EntityWeakPtr::EntityWeakPtr(EntityWeakPtr&& x)
|
||||
@ -280,6 +285,7 @@ EntityWeakPtr::EntityWeakPtr(EntityWeakPtr&& x)
|
||||
Attach(x.ptr_);
|
||||
x.Detach();
|
||||
}
|
||||
++Perf::Instance()->e_wptr_num;
|
||||
}
|
||||
|
||||
EntityWeakPtr& EntityWeakPtr::operator=(const EntityWeakPtr& x)
|
||||
|
Loading…
x
Reference in New Issue
Block a user