CResourceEntry: Make use of static qualifier

This function doesn't depend on instance state.
This commit is contained in:
Lioncash 2020-06-19 03:37:59 -04:00
parent 1e46717b57
commit 61ec2f2e08

View File

@ -466,7 +466,8 @@ bool CResourceEntry::Unload()
bool CResourceEntry::CanMoveTo(const TString& rkDir, const TString& rkName) bool CResourceEntry::CanMoveTo(const TString& rkDir, const TString& rkName)
{ {
// Validate that the path/name are valid // Validate that the path/name are valid
if (!mpStore->IsValidResourcePath(rkDir, rkName)) return false; if (!CResourceStore::IsValidResourcePath(rkDir, rkName))
return false;
// We need to validate the path isn't taken already - either the directory doesn't exist, or doesn't have a resource by this name // We need to validate the path isn't taken already - either the directory doesn't exist, or doesn't have a resource by this name
CVirtualDirectory *pDir = mpStore->GetVirtualDirectory(rkDir, false); CVirtualDirectory *pDir = mpStore->GetVirtualDirectory(rkDir, false);