Meson: Remove some explicit use of QFileInfo

Change-Id: I5fa65b29516f80afdc2b00934ed39e63ae5a3a24
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-07-25 14:37:22 +02:00
parent 8e037b6019
commit 3fe426e053

View File

@@ -12,10 +12,6 @@
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/qtcprocess.h> #include <utils/qtcprocess.h>
#include <QFile>
#include <QFileInfo>
#include <QTemporaryFile>
using namespace Utils; using namespace Utils;
namespace MesonProjectManager::Internal { namespace MesonProjectManager::Internal {
@@ -78,7 +74,7 @@ void ToolWrapper::setExe(const FilePath &newExe)
QVersionNumber ToolWrapper::read_version(const FilePath &toolPath) QVersionNumber ToolWrapper::read_version(const FilePath &toolPath)
{ {
if (toolPath.toFileInfo().isExecutable()) { if (toolPath.isExecutableFile()) {
Process process; Process process;
process.setCommand({ toolPath, { "--version" } }); process.setCommand({ toolPath, { "--version" } });
process.start(); process.start();