Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
6193e2b0
Commit
6193e2b0
authored
Nov 14, 2020
by
Nicolas Fella
Browse files
Fix build with newer Qt
parent
1f470c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ksmserver/server.cpp
View file @
6193e2b0
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment