Skip to content

Commit

Permalink
refactor: replace non-empty QString constructors with QStringLiteral()
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Nov 3, 2024
1 parent 66f603d commit f170bc2
Show file tree
Hide file tree
Showing 18 changed files with 1,849 additions and 1,849 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 f170bc2

Please sign in to comment.