Replace NULL with nullptr
This commit is contained in:
parent
5f11e15571
commit
95a1400a2a
755 changed files with 5742 additions and 5742 deletions
|
|
@ -96,10 +96,10 @@ CollisionObjectBullet::CollisionObjectBullet(Type p_type) :
|
|||
collisionsEnabled(true),
|
||||
m_isStatic(false),
|
||||
ray_pickable(false),
|
||||
bt_collision_object(NULL),
|
||||
bt_collision_object(nullptr),
|
||||
body_scale(1., 1., 1.),
|
||||
force_shape_reset(false),
|
||||
space(NULL),
|
||||
space(nullptr),
|
||||
isTransformChanged(false) {}
|
||||
|
||||
CollisionObjectBullet::~CollisionObjectBullet() {
|
||||
|
|
@ -227,7 +227,7 @@ void CollisionObjectBullet::notify_transform_changed() {
|
|||
|
||||
RigidCollisionObjectBullet::RigidCollisionObjectBullet(Type p_type) :
|
||||
CollisionObjectBullet(p_type),
|
||||
mainShape(NULL) {
|
||||
mainShape(nullptr) {
|
||||
}
|
||||
|
||||
RigidCollisionObjectBullet::~RigidCollisionObjectBullet() {
|
||||
|
|
@ -332,7 +332,7 @@ bool RigidCollisionObjectBullet::is_shape_disabled(int p_index) {
|
|||
void RigidCollisionObjectBullet::shape_changed(int p_shape_index) {
|
||||
ShapeWrapper &shp = shapes.write[p_shape_index];
|
||||
if (shp.bt_shape == mainShape) {
|
||||
mainShape = NULL;
|
||||
mainShape = nullptr;
|
||||
}
|
||||
bulletdelete(shp.bt_shape);
|
||||
reload_shapes();
|
||||
|
|
@ -345,7 +345,7 @@ void RigidCollisionObjectBullet::reload_shapes() {
|
|||
bulletdelete(mainShape);
|
||||
}
|
||||
|
||||
mainShape = NULL;
|
||||
mainShape = nullptr;
|
||||
|
||||
ShapeWrapper *shpWrapper;
|
||||
const int shape_count = shapes.size();
|
||||
|
|
@ -398,7 +398,7 @@ void RigidCollisionObjectBullet::internal_shape_destroy(int p_index, bool p_perm
|
|||
ShapeWrapper &shp = shapes.write[p_index];
|
||||
shp.shape->remove_owner(this, p_permanentlyFromThisBody);
|
||||
if (shp.bt_shape == mainShape) {
|
||||
mainShape = NULL;
|
||||
mainShape = nullptr;
|
||||
}
|
||||
bulletdelete(shp.bt_shape);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue