Tracker: fix warning in gcc2
Refactor a bit the conditions to avoid a warning.
This commit is contained in:
parent
139ee87903
commit
96c30cc820
@ -1106,14 +1106,12 @@ Model::SupportsMimeType(const char* type, const BObjectList<BString>* list,
|
||||
|
||||
int32 match;
|
||||
|
||||
if (type) {
|
||||
if (type || (list != NULL && list->IsEmpty())) {
|
||||
BString typeString(type);
|
||||
match = MatchMimeTypeString(&typeString, mimeSignature);
|
||||
} else {
|
||||
if (list != NULL && !list->IsEmpty()) {
|
||||
match = WhileEachListItem(const_cast<BObjectList<BString>*>(list),
|
||||
MatchMimeTypeString, mimeSignature);
|
||||
}
|
||||
match = WhileEachListItem(const_cast<BObjectList<BString>*>(list),
|
||||
MatchMimeTypeString, mimeSignature);
|
||||
// const_cast shouldnt be here, have to have it until
|
||||
// MW cleans up
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user