Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

kdevplatform/language: use QStringLiteral over runtime QString allocation

GIT_SILENT
parent e5e28ab4
......@@ -61,7 +61,7 @@ void insertFunctionParenText(KTextEditor::View* view, const KTextEditor::Cursor&
if (spaceBeforeParen)
openingParen = QStringLiteral(" (");
else
openingParen = QLatin1Char('(');
openingParen = QStringLiteral("(");
if (spaceBetweenParens && (haveArguments || spaceBetweenEmptyParens))
openingParen += QLatin1Char(' ');
......@@ -70,7 +70,7 @@ void insertFunctionParenText(KTextEditor::View* view, const KTextEditor::Cursor&
if (spaceBetweenParens && (haveArguments)) {
closingParen = QStringLiteral(" )");
} else
closingParen = QLatin1Char(')');
closingParen = QStringLiteral(")");
KTextEditor::Cursor jumpPos = pos + KTextEditor::Cursor(0, openingParen.length());
......
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