Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM GrantleeTheme
Commits
abcf07e5
Commit
abcf07e5
authored
Apr 29, 2021
by
Laurent Montel
😁
Browse files
Use QStringView
parent
3500a673
Pipeline
#60200
passed with stage
in 3 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/plugin/color.cpp
View file @
abcf07e5
...
...
@@ -143,7 +143,7 @@ ColorMixNode::~ColorMixNode() = default;
static
QColor
resolveColor
(
const
QString
&
name
,
Grantlee
::
Context
*
c
)
{
if
(
name
.
startsWith
(
QLatin1Char
(
'"'
))
&&
name
.
endsWith
(
QLatin1Char
(
'"'
)))
{
return
QColor
(
name
.
mid
Ref
(
1
,
name
.
size
()
-
2
));
return
QColor
(
QStringView
(
name
)
.
mid
(
1
,
name
.
size
()
-
2
));
}
const
auto
val
=
Grantlee
::
Variable
(
name
).
resolve
(
c
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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