mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 17:07:41 +00:00
string_view refactor
This commit is contained in:
@@ -212,9 +212,9 @@ const PAK::Entry* PAK::lookupEntry(const UniqueID64& id) const
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
const PAK::Entry* PAK::lookupEntry(const std::string& name) const
|
||||
const PAK::Entry* PAK::lookupEntry(std::string_view name) const
|
||||
{
|
||||
auto result = m_nameMap.find(name);
|
||||
auto result = m_nameMap.find(name.data());
|
||||
if (result != m_nameMap.end())
|
||||
{
|
||||
auto result1 = m_entries.find(result->second);
|
||||
|
||||
Reference in New Issue
Block a user