LanguageClient: remove indirect QString::toUtf8/fromUtf8 roundtrip

Change-Id: I80146250cf5be5d408c30337869dd5baed923d5a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2025-01-06 11:58:25 +01:00
parent 543acde1c8
commit a822f6db98

View File

@@ -489,8 +489,7 @@ LspInspectorWidget::LspInspectorWidget(LspInspector *inspector)
for (Client *client : clients) { for (Client *client : clients) {
errMsg += sendMessage( errMsg += sendMessage(
client, client,
Utils::globalMacroExpander()->expand( Utils::globalMacroExpander()->expand(messageEditor->textDocument()->plainText()));
QString::fromUtf8(messageEditor->document()->contents())));
} }
errorLabel->setText(errMsg); errorLabel->setText(errMsg);
}; };