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:
parent
b1ec50c96d
commit
16a5206c78
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user