From 114ab70975295dadb4d061cb4538dc2abc43acc5 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Thu, 29 Dec 2011 12:38:42 -0500 Subject: [PATCH] Change style of boolean expression to enhance readability. --- src/servers/mail/Notifier.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/servers/mail/Notifier.cpp b/src/servers/mail/Notifier.cpp index 2a80c01b7b..11633e5500 100644 --- a/src/servers/mail/Notifier.cpp +++ b/src/servers/mail/Notifier.cpp @@ -131,8 +131,10 @@ DefaultNotifier::ReportProgress(int bytes, int messages, const char* message) if (fItemsDone == fTotalItems && fTotalItems != 0) timeout = 1; // We're done, make the window go away faster - if ((!fIsInbound && fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_SENDING) - || (fIsInbound && fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_ACTIVE)) + if ((!fIsInbound + && (fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_SENDING) != 0) + || (fIsInbound + && (fShowMode & B_MAIL_SHOW_STATUS_WINDOW_WHEN_ACTIVE) != 0)) fNotification.Send(timeout); }