summaryrefslogtreecommitdiff
path: root/core/dvector.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-10-07 10:58:45 +0200
committerGitHub <noreply@github.com>2018-10-07 10:58:45 +0200
commit44d82b3a070b7ed8973d9e8bc6e58da1084fc7d1 (patch)
tree544ab66de3ef4c6a20f2739decc4e98212c3207a /core/dvector.h
parentc27b2adb10ea7077008d4f8b356e3561d05bad6a (diff)
parent4f7b33cdcfdcbc11bcc506018dff1b06db3cf3f6 (diff)
Merge pull request #22752 from aaronfranke/equals-redundant
Remove redundant "== true" and "== false" code
Diffstat (limited to 'core/dvector.h')
-rw-r--r--core/dvector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/dvector.h b/core/dvector.h
index 0d0848a19a..2830c57ec0 100644
--- a/core/dvector.h
+++ b/core/dvector.h
@@ -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
@@ -209,7 +209,7 @@ class PoolVector {
if (!alloc)
return;
- if (alloc->refcount.unref() == false) {
+ if (!alloc->refcount.unref()) {
alloc = NULL;
return;
}