Replace NULL with nullptr
This commit is contained in:
@@ -112,7 +112,7 @@ public:
|
||||
// this function only works on physics process, errors and returns null otherwise
|
||||
PhysicsDirectSpaceState2D *space_get_direct_state(RID p_space) {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), NULL);
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), nullptr);
|
||||
return physics_2d_server->space_get_direct_state(p_space);
|
||||
}
|
||||
|
||||
@@ -255,7 +255,7 @@ public:
|
||||
|
||||
FUNC2(body_set_pickable, RID, bool);
|
||||
|
||||
bool body_test_motion(RID p_body, const Transform2D &p_from, const Vector2 &p_motion, bool p_infinite_inertia, real_t p_margin = 0.001, MotionResult *r_result = NULL, bool p_exclude_raycast_shapes = true) {
|
||||
bool body_test_motion(RID p_body, const Transform2D &p_from, const Vector2 &p_motion, bool p_infinite_inertia, real_t p_margin = 0.001, MotionResult *r_result = nullptr, bool p_exclude_raycast_shapes = true) {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), false);
|
||||
return physics_2d_server->body_test_motion(p_body, p_from, p_motion, p_infinite_inertia, p_margin, r_result, p_exclude_raycast_shapes);
|
||||
@@ -270,7 +270,7 @@ public:
|
||||
// this function only works on physics process, errors and returns null otherwise
|
||||
PhysicsDirectBodyState2D *body_get_direct_state(RID p_body) {
|
||||
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), NULL);
|
||||
ERR_FAIL_COND_V(main_thread != Thread::get_caller_id(), nullptr);
|
||||
return physics_2d_server->body_get_direct_state(p_body);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user