Fix build with newer Qt

wilder-5.22
Nicolas Fella 5 years ago
parent 1f470c4de6
commit 6193e2b011
  1. 8
      ksmserver/server.cpp

@ -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());

Loading…
Cancel
Save