mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-04 12:15:58 +00:00
CResTypeFilter: Make pointer parameters in Accepts() const
These don't modify the pointed to data.
This commit is contained in:
parent
829613193d
commit
473e716cb7
@ -62,14 +62,14 @@ public:
|
|||||||
return mAcceptedTypes.find(Type) != mAcceptedTypes.end();
|
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
|
bool Accepts(const CResTypeFilter& filter) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user