Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
This commit is contained in:
@@ -2487,7 +2487,7 @@ _Thread::~_Thread() {
|
||||
if (active) {
|
||||
ERR_EXPLAIN("Reference to a Thread object object was lost while the thread is still running...");
|
||||
}
|
||||
ERR_FAIL_COND(active == true);
|
||||
ERR_FAIL_COND(active);
|
||||
}
|
||||
/////////////////////////////////////
|
||||
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ class PoolVector {
|
||||
}
|
||||
}
|
||||
|
||||
if (old_alloc->refcount.unref() == true) {
|
||||
if (old_alloc->refcount.unref()) {
|
||||
//this should never happen but..
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
|
||||
@@ -578,7 +578,7 @@ void MultiplayerAPI::_send_rpc(Node *p_from, int p_to, bool p_unreliable, bool p
|
||||
|
||||
network_peer->set_target_peer(E->get()); // To this one specifically.
|
||||
|
||||
if (F->get() == true) {
|
||||
if (F->get()) {
|
||||
// This one confirmed path, so use id.
|
||||
encode_uint32(psc->id, &(packet_cache.write[1]));
|
||||
network_peer->put_packet(packet_cache.ptr(), ofs);
|
||||
|
||||
+1
-1
@@ -858,7 +858,7 @@ bool Variant::is_one() const {
|
||||
// atomic types
|
||||
case BOOL: {
|
||||
|
||||
return _data._bool == true;
|
||||
return _data._bool;
|
||||
} break;
|
||||
case INT: {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user