summaryrefslogtreecommitdiffstats
path: root/platform/haiku/haiku_direct_window.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2018-10-03 13:40:37 -0400
committerAaron Franke <arnfranke@yahoo.com>2018-10-06 16:12:36 -0400
commit37386f112bafa9c4e94c342f6d5f04392a5623f7 (patch)
tree23870a98dd815447693154dedcb054e88a20e694 /platform/haiku/haiku_direct_window.cpp
parentffe94ef4e2dc28e69337f53f58d0fa60e23607a8 (diff)
downloadredot-engine-37386f112bafa9c4e94c342f6d5f04392a5623f7.tar.gz
Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
Diffstat (limited to 'platform/haiku/haiku_direct_window.cpp')
-rw-r--r--platform/haiku/haiku_direct_window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/haiku/haiku_direct_window.cpp b/platform/haiku/haiku_direct_window.cpp
index 150e90be65..6b64082250 100644
--- a/platform/haiku/haiku_direct_window.cpp
+++ b/platform/haiku/haiku_direct_window.cpp
@@ -86,7 +86,7 @@ void HaikuDirectWindow::DirectConnected(direct_buffer_info *info) {
void HaikuDirectWindow::MessageReceived(BMessage *message) {
switch (message->what) {
case REDRAW_MSG:
- if (Main::iteration() == true) {
+ if (Main::iteration()) {
view->EnableDirectMode(false);
Quit();
}