forked from qt-creator/qt-creator
LanguageClient: remove indirect QString::toUtf8/fromUtf8 roundtrip
Change-Id: I80146250cf5be5d408c30337869dd5baed923d5a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user