forked from qt-creator/qt-creator
Utils: Move the CommandLine destructor out-of-line
Not really cheap and bloats the user code. Change-Id: I2039794f0608838d97b404bb7d92b489d22f2cbe Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1409,6 +1409,8 @@ CommandLine::CommandLine(const FilePath &executable)
|
|||||||
: m_executable(executable)
|
: m_executable(executable)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
CommandLine::~CommandLine() = default;
|
||||||
|
|
||||||
CommandLine::CommandLine(const FilePath &exe, const QStringList &args)
|
CommandLine::CommandLine(const FilePath &exe, const QStringList &args)
|
||||||
: m_executable(exe)
|
: m_executable(exe)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -119,6 +119,8 @@ public:
|
|||||||
enum RawType { Raw };
|
enum RawType { Raw };
|
||||||
|
|
||||||
CommandLine();
|
CommandLine();
|
||||||
|
~CommandLine();
|
||||||
|
|
||||||
explicit CommandLine(const FilePath &executable);
|
explicit CommandLine(const FilePath &executable);
|
||||||
CommandLine(const FilePath &exe, const QStringList &args);
|
CommandLine(const FilePath &exe, const QStringList &args);
|
||||||
CommandLine(const FilePath &exe, const QStringList &args, OsType osType);
|
CommandLine(const FilePath &exe, const QStringList &args, OsType osType);
|
||||||
|
|||||||
Reference in New Issue
Block a user