summaryrefslogtreecommitdiff
path: root/src/libs/utils/fileutils.h
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-07-23 12:39:05 +0200
committerhjk <hjk@qt.io>2019-07-23 16:03:02 +0000
commitfa81f76237ea29c8e38c913f94ef36bbe6bf42b8 (patch)
tree46907dcd2161c95e5018c3c58a22c44d2c9cf070 /src/libs/utils/fileutils.h
parent8b72e9216746c04e68a1c6498ac3396942fbebce (diff)
downloadqt-creator-fa81f76237ea29c8e38c913f94ef36bbe6bf42b8.tar.gz
Utils: Move meta char policy handling from FilePath to ConsoleProcess
Currently the only place that's using it and the scope is much smaller. Change-Id: I1a43d14f0e2c69a16f76e6f83b82436bbeeac1c9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/utils/fileutils.h')
-rw-r--r--src/libs/utils/fileutils.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libs/utils/fileutils.h b/src/libs/utils/fileutils.h
index 4385d6f618..e1236f0f28 100644
--- a/src/libs/utils/fileutils.h
+++ b/src/libs/utils/fileutils.h
@@ -132,15 +132,12 @@ class QTCREATOR_UTILS_EXPORT CommandLine
{
public:
enum RawType { Raw };
- enum class MetaCharMode { Abort, Ignore };
CommandLine() {}
explicit CommandLine(const QString &executable);
explicit CommandLine(const FilePath &executable);
CommandLine(const QString &exe, const QStringList &args);
- CommandLine(const FilePath &exe,
- const QStringList &args,
- MetaCharMode metaCharMode = MetaCharMode::Abort);
+ CommandLine(const FilePath &exe, const QStringList &args);
CommandLine(const FilePath &exe, const QString &unparsedArgs, RawType);
void addArg(const QString &arg, OsType osType = HostOsInfo::hostOs());
@@ -152,13 +149,11 @@ public:
FilePath executable() const { return m_executable; }
QString arguments() const { return m_arguments; }
- MetaCharMode metaCharMode() const { return m_metaCharMode; }
QStringList splitArguments(OsType osType = HostOsInfo::hostOs()) const;
private:
FilePath m_executable;
QString m_arguments;
- MetaCharMode m_metaCharMode;
};
class QTCREATOR_UTILS_EXPORT FileUtils {