Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
c27735b0
Commit
c27735b0
authored
Apr 16, 2015
by
Fabio Bas
Browse files
Simplified code
parent
9296e600
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/filtertree.cpp
View file @
c27735b0
...
...
@@ -131,18 +131,18 @@ bool FilterItemList::testTypeAndNot(const CardInfo *info, CardFilter::Attr attr)
bool
FilterItemList
::
testTypeOr
(
const
CardInfo
*
info
,
CardFilter
::
Attr
attr
)
const
{
QList
<
FilterItem
*>::
const_iterator
i
;
bool
e
nabledChild
s
=
fals
e
;
bool
noChildE
nabledChild
=
tru
e
;
for
(
i
=
childNodes
.
constBegin
();
i
!=
childNodes
.
constEnd
();
i
++
)
{
if
(
!
(
*
i
)
->
isEnabled
())
continue
;
if
(
!
e
nabledChild
s
)
e
nabledChild
s
=
tru
e
;
if
(
noChildE
nabledChild
)
noChildE
nabledChild
=
fals
e
;
if
((
*
i
)
->
acceptCardAttr
(
info
,
attr
))
return
true
;
}
return
e
nabledChild
s
?
false
:
true
;
return
noChildE
nabledChild
;
}
bool
FilterItemList
::
testTypeOrNot
(
const
CardInfo
*
info
,
CardFilter
::
Attr
attr
)
const
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment