mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
make some things const
This commit is contained in:
parent
32bea0c0e3
commit
fe9055c98e
1 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ void ISOFileSystem::ReadDirectory(u32 startsector, u32 dirsize, TreeEntry *root,
|
|||
}
|
||||
else
|
||||
{
|
||||
e->name = std::string((char *)&dir.firstIdChar, dir.identifierLength);
|
||||
e->name = std::string((const char *)&dir.firstIdChar, dir.identifierLength);
|
||||
relative = false;
|
||||
}
|
||||
|
||||
|
@ -322,7 +322,7 @@ ISOFileSystem::TreeEntry *ISOFileSystem::GetFromPath(std::string path, bool catc
|
|||
std::string name = "";
|
||||
if (path.length()>0)
|
||||
{
|
||||
std::string firstPathComponent = path.substr(0, path.find_first_of('/'));
|
||||
const std::string firstPathComponent = path.substr(0, path.find_first_of('/'));
|
||||
for (size_t i = 0; i < e->children.size(); i++)
|
||||
{
|
||||
const std::string &n = e->children[i]->name;
|
||||
|
|
Loading…
Add table
Reference in a new issue