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
Education
KmPlot
Commits
b62d82d2
Commit
b62d82d2
authored
Oct 17, 2022
by
Nicolas Fella
Browse files
Fix QChar creation with Qt6
parent
fb7cd311
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmplot/parser.cpp
View file @
b62d82d2
...
...
@@ -1381,7 +1381,7 @@ void ExpressionSanitizer::fixExpression(QString *str)
// make sure all minus-like signs (including the actual unicode minus sign)
// are represented by a dash (unicode 0x002d)
QChar
dashes
[
6
]
=
{
0x2012
,
0x2013
,
0x2014
,
0x2015
,
0x2053
,
0x2212
};
QChar
dashes
[
6
]
=
{
QChar
(
0x2012
)
,
QChar
(
0x2013
)
,
QChar
(
0x2014
)
,
QChar
(
0x2015
)
,
QChar
(
0x2053
)
,
QChar
(
0x2212
)
};
for
(
unsigned
i
=
0
;
i
<
6
;
++
i
)
replace
(
dashes
[
i
],
'-'
);
...
...
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