Commit 6193e2b0 authored by Nicolas Fella's avatar Nicolas Fella

Fix build with newer Qt

parent 1f470c4d
......@@ -654,9 +654,9 @@ KSMServer::KSMServer(InitFlags flags)
display.remove(QRegularExpression(QStringLiteral("\\.[0-9]+$")));
int i;
while( (i = display.indexOf(QLatin1Char(':'))) >= 0)
display[i] = '_';
display[i] = QLatin1Char('_');
while( (i = display.indexOf(QLatin1Char('/'))) >= 0)
display[i] = '_';
display[i] = QLatin1Char('_');
fName += '_'+display.toLocal8Bit();
FILE *f;
......@@ -738,9 +738,9 @@ void KSMServer::cleanUp()
display.remove(QRegularExpression(QStringLiteral("\\.[0-9]+$")));
int i;
while( (i = display.indexOf(QLatin1Char(':'))) >= 0)
display[i] = '_';
display[i] = QLatin1Char('_');
while( (i = display.indexOf(QLatin1Char('/'))) >= 0)
display[i] = '_';
display[i] = QLatin1Char('_');
fName += '_'+display.toLocal8Bit();
::unlink(fName.data());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment