forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user