From a9245bf1869fd3f68a399ac60abd67ac156b4e8d Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 14 Jun 2022 17:10:17 +0200 Subject: [PATCH] LanguageClient: Use more FilePath Change-Id: Ia4ffec1fd2c6bd8dc2cce40efa49e3b4a4634f15 Reviewed-by: Reviewed-by: David Schulz --- src/plugins/languageclient/client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/languageclient/client.cpp b/src/plugins/languageclient/client.cpp index 0186921b88a..303436a7ff4 100644 --- a/src/plugins/languageclient/client.cpp +++ b/src/plugins/languageclient/client.cpp @@ -896,8 +896,7 @@ void Client::setShadowDocument(const Utils::FilePath &filePath, const QString &c return; const auto uri = DocumentUri::fromFilePath(filePath); if (isNew) { - const QString mimeType = mimeTypeForFile( - filePath.toString(), MimeMatchMode::MatchExtension).name(); + const QString mimeType = mimeTypeForFile(filePath, MimeMatchMode::MatchExtension).name(); d->sendOpenNotification(filePath, mimeType, content, 0); }