mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Qt: buildfix for older Qt
This commit is contained in:
parent
9d43f7f036
commit
2e8361970b
@ -3173,11 +3173,12 @@ int MainWindow::onExtractArchive(QString path, QString extractionDir, QString te
|
||||
|
||||
QString MainWindow::getScrubbedString(QString str)
|
||||
{
|
||||
const QLatin1Literal chars("&*/:`\"<>?\\|");
|
||||
const QString chars("&*/:`\"<>?\\|");
|
||||
int i;
|
||||
|
||||
foreach (QChar ch, chars)
|
||||
for (i = 0; i < chars.count(); i++)
|
||||
{
|
||||
str.replace(ch, "_");
|
||||
str.replace(chars.at(i), '_');
|
||||
}
|
||||
|
||||
return str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user