mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Correct some non-const string literals.
Should not be treated as non-const char *.
This commit is contained in:
parent
80eb12a9d6
commit
bcf63a0fae
4 changed files with 10 additions and 10 deletions
|
|
@ -64,7 +64,7 @@ bool TRPLoader::LoadHeader(bool show)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TRPLoader::ContainsEntry(char *filename)
|
||||
bool TRPLoader::ContainsEntry(const char *filename)
|
||||
{
|
||||
for (const TRPEntry& entry : m_entries) {
|
||||
if (!strcmp(entry.name, filename))
|
||||
|
|
@ -73,7 +73,7 @@ bool TRPLoader::ContainsEntry(char *filename)
|
|||
return false;
|
||||
}
|
||||
|
||||
void TRPLoader::RemoveEntry(char *filename)
|
||||
void TRPLoader::RemoveEntry(const char *filename)
|
||||
{
|
||||
std::vector<TRPEntry>::iterator i = m_entries.begin();
|
||||
while (i != m_entries.end()) {
|
||||
|
|
@ -84,7 +84,7 @@ void TRPLoader::RemoveEntry(char *filename)
|
|||
}
|
||||
}
|
||||
|
||||
void TRPLoader::RenameEntry(char *oldname, char *newname)
|
||||
void TRPLoader::RenameEntry(const char *oldname, const char *newname)
|
||||
{
|
||||
for (const TRPEntry& entry : m_entries) {
|
||||
if (!strcmp(entry.name, oldname))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue