CResTypeFilter: Make pointer parameters in Accepts() const

These don't modify the pointed to data.
This commit is contained in:
Lioncash 2020-06-28 00:02:15 -04:00
parent 829613193d
commit 473e716cb7
1 changed files with 4 additions and 4 deletions

View File

@ -62,14 +62,14 @@ public:
return mAcceptedTypes.find(Type) != mAcceptedTypes.end();
}
bool Accepts(CResTypeInfo *pType) const
bool Accepts(const CResTypeInfo *pType) const
{
return pType && Accepts(pType->Type());
return pType != nullptr && Accepts(pType->Type());
}
bool Accepts(CResourceEntry *pEntry) const
bool Accepts(const CResourceEntry *pEntry) const
{
return pEntry && Accepts(pEntry->ResourceType());
return pEntry != nullptr && Accepts(pEntry->ResourceType());
}
bool Accepts(const CResTypeFilter& filter) const