forked from qt-creator/qt-creator
CorePlugin: Use FilePath istead of QString
Task-number: QTCREATORBUG-2616 Change-Id: Iaa5bc7946a7bddfd8adffe51906d90b2e76f5837 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -131,7 +131,7 @@ static void parseDirectory(const QString &directory,
|
||||
foreach (const QFileInfo &info, dir.entryInfoList()) {
|
||||
const QString &fileName = info.absoluteFilePath();
|
||||
QString error;
|
||||
ExternalTool *tool = ExternalTool::createFromFile(fileName, &error, ICore::userInterfaceLanguage());
|
||||
ExternalTool *tool = ExternalTool::createFromFile(Utils::FilePath::fromString(fileName), &error, ICore::userInterfaceLanguage());
|
||||
if (!tool) {
|
||||
qWarning() << ExternalTool::tr("Error while parsing external tool %1: %2").arg(fileName, error);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user