Commit 2a4a4a07 authored by Nicolas Fella's avatar Nicolas Fella Committed by David Faure

Fix build with newer Qt

parent 288d9a7c
......@@ -645,9 +645,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;
......@@ -729,9 +729,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