From 3930679f27a299b9abd97cedccab82d89a5dffee Mon Sep 17 00:00:00 2001 From: Jonas Karlsson Date: Tue, 7 Sep 2021 14:52:49 +0200 Subject: Fix compilation There is no FilePath constructor taking a QString, use fromString method. Change-Id: Icad9cbdacced2e606a0f8db0a5312d38cabee21b Reviewed-by: Thomas Hartmann Reviewed-by: Christian Kandeler --- src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp') diff --git a/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp b/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp index dc6cffda6c..df79604682 100644 --- a/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp +++ b/src/tools/cplusplus-update-frontend/cplusplus-update-frontend.cpp @@ -1034,7 +1034,7 @@ void generateAST_cpp(const Snapshot &snapshot, const QDir &cplusplusDir) QTextDocument cpp_document; cpp_document.setPlainText(QString::fromUtf8(source)); - Document::Ptr AST_cpp_document = snapshot.preprocessedDocument(source, fileName); + Document::Ptr AST_cpp_document = snapshot.preprocessedDocument(source, Utils::FilePath::fromString(fileName)); AST_cpp_document->check(); Overview oo; @@ -1325,7 +1325,7 @@ QStringList generateAST_H(const Snapshot &snapshot, const QDir &cplusplusDir, co QTextDocument document; document.setPlainText(QString::fromUtf8(source)); - AST_h_document = snapshot.preprocessedDocument(source, fileName); + AST_h_document = snapshot.preprocessedDocument(source, Utils::FilePath::fromString(fileName)); AST_h_document->check(); FindASTNodes process(AST_h_document, &document); @@ -1457,7 +1457,7 @@ void generateASTFwd_h(const Snapshot &snapshot, const QDir &cplusplusDir, const QTextDocument document; document.setPlainText(QString::fromUtf8(source)); - Document::Ptr doc = snapshot.preprocessedDocument(source, fileName); + Document::Ptr doc = snapshot.preprocessedDocument(source, Utils::FilePath::fromString(fileName)); doc->check(); FindASTForwards process(doc, &document); -- cgit v1.2.1