PVS V792: use short circuit operators

Avoids calling all the functions, we can stop once one of them is true.

Change-Id: I92437a60d3d52efd5a11547a11b88e3bf232e66b
Reviewed-on: https://review.haiku-os.org/c/1624
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Adrien Destugues 2019-07-17 20:32:37 +02:00 committed by waddlesplash
parent 72bfb14432
commit 4a113a01d0

View File

@ -469,9 +469,9 @@ void
ServerSettingsView::_DetectMenuChanges()
{
bool changed = _HasMarkedChanged(fInboundAuthMenu, fInboundAuthItemStart)
| _HasMarkedChanged(fInboundEncryptionMenu, fInboundEncrItemStart)
| _HasMarkedChanged(fOutboundAuthMenu, fOutboundAuthItemStart)
| _HasMarkedChanged(fOutboundEncryptionMenu, fOutboundEncrItemStart);
|| _HasMarkedChanged(fInboundEncryptionMenu, fInboundEncrItemStart)
|| _HasMarkedChanged(fOutboundAuthMenu, fOutboundAuthItemStart)
|| _HasMarkedChanged(fOutboundEncryptionMenu, fOutboundEncrItemStart);
if (changed) {
BMessage msg(kServerChangedMsg);