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) {
errMsg += sendMessage(
client,
Utils::globalMacroExpander()->expand(
QString::fromUtf8(messageEditor->document()->contents())));
Utils::globalMacroExpander()->expand(messageEditor->textDocument()->plainText()));
}
errorLabel->setText(errMsg);
};