QLoggingRegistry: remove an always true test

idx has already been tested for being >=0, so it's pointless
retesting it.

Change-Id: I2f5d7e1b7a70097de2601c1ed83752f6aa707cd9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2020-06-29 13:21:31 +02:00
parent b1ec50c96d
commit 16a5206c78

View File

@ -105,8 +105,7 @@ int QLoggingRule::pass(QLatin1String cat, QtMsgType msgType) const
if (idx >= 0) {
if (flags == MidFilter) {
// matches somewhere
if (idx >= 0)
return (enabled ? 1 : -1);
return (enabled ? 1 : -1);
} else if (flags == LeftFilter) {
// matches left
if (idx == 0)