mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
Don't copy each name in a loop
This commit is contained in:
@@ -325,7 +325,7 @@ ISOFileSystem::TreeEntry *ISOFileSystem::GetFromPath(std::string path, bool catc
|
||||
std::string firstPathComponent = path.substr(0, path.find_first_of('/'));
|
||||
for (size_t i = 0; i < e->children.size(); i++)
|
||||
{
|
||||
std::string n = e->children[i]->name;
|
||||
const std::string &n = e->children[i]->name;
|
||||
|
||||
if (firstPathComponent == n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user