Codechange: Remove some unnecessary c_str() when passing std::strings. (#12532)
Functions have been updated from `char *` to `std::string` since without removing `c_str()`.
This commit is contained in:
@@ -180,7 +180,7 @@ public:
|
||||
/**
|
||||
* Scan.
|
||||
*/
|
||||
void Scan(const char *directory)
|
||||
void Scan(const std::string &directory)
|
||||
{
|
||||
this->FileScanner::Scan(".txt", directory, false);
|
||||
}
|
||||
@@ -241,7 +241,7 @@ GameStrings *LoadTranslations()
|
||||
}
|
||||
} else {
|
||||
/* Scan filesystem */
|
||||
scanner.Scan(ldir.c_str());
|
||||
scanner.Scan(ldir);
|
||||
}
|
||||
|
||||
gs->Compile();
|
||||
|
||||
Reference in New Issue
Block a user