Core: PatchTool code cosmetics

Some more FilePath use, QLatin*, static, ...

Also fix default settings values, amends e2eab0e0 insofar.

Change-Id: I8e40ca9629351db3b3095636b4ea29a204f86da6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2021-08-17 13:37:20 +02:00
parent bd4a501f15
commit 59c01481d1
5 changed files with 33 additions and 38 deletions

View File

@@ -27,18 +27,18 @@
#include "core_global.h"
#include <QString>
#include <utils/filepath.h>
namespace Core {
class CORE_EXPORT PatchTool
{
public:
static QString patchCommand();
static void setPatchCommand(const QString &newCommand);
static Utils::FilePath patchCommand();
static void setPatchCommand(const Utils::FilePath &newCommand);
// Utility to run the 'patch' command
static bool runPatch(const QByteArray &input, const QString &workingDirectory = QString(),
static bool runPatch(const QByteArray &input, const Utils::FilePath &workingDirectory = {},
int strip = 0, bool reverse = false);
};