Commit abcf07e5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringView

parent 3500a673
Pipeline #60200 passed with stage
in 3 minutes and 21 seconds
......@@ -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.midRef(1, name.size() - 2));
return QColor(QStringView(name).mid(1, name.size() - 2));
}
const auto val = Grantlee::Variable(name).resolve(c);
......
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