Skip to content

Commit

Permalink
Replace non-empty QString constructors with QStringLiteral (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech authored Nov 5, 2024
1 parent 6550f0b commit 3e4e2b7
Show file tree
Hide file tree
Showing 25 changed files with 1,866 additions and 1,859 deletions.
4 changes: 2 additions & 2 deletions bindings/neovimapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void NeovimApi{{api_level}}::handleResponseError(quint32 msgid, quint64 fun, con
break;
{% endfor %}
default:
m_c->setError(NeovimConnector::RuntimeMsgpackError, QString("Received error for function that should not fail: %s").arg(fun));
m_c->setError(NeovimConnector::RuntimeMsgpackError, QStringLiteral("Received error for function that should not fail: %s").arg(fun));
}
}

Expand Down Expand Up @@ -133,7 +133,7 @@ bool NeovimApi{{api_level}}::checkFunctions(const QVariantList& ftable)
<< Function("{{f.return_type.neovim_type}}", "{{f.name}}",
QList<QString>()
{% for param in f.parameters %}
<< QString("{{param.neovim_type}}")
<< QStringLiteral("{{param.neovim_type}}")
{% endfor %}
, false)
{% endfor %}
Expand Down
Loading

0 comments on commit 3e4e2b7

Please sign in to comment.