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:
hjk
2023-03-23 12:40:20 +01:00
parent 8af05292e7
commit ae4e178221
2 changed files with 4 additions and 0 deletions

View File

@@ -1409,6 +1409,8 @@ CommandLine::CommandLine(const FilePath &executable)
: m_executable(executable)
{}
CommandLine::~CommandLine() = default;
CommandLine::CommandLine(const FilePath &exe, const QStringList &args)
: m_executable(exe)
{

View File

@@ -119,6 +119,8 @@ public:
enum RawType { Raw };
CommandLine();
~CommandLine();
explicit CommandLine(const FilePath &executable);
CommandLine(const FilePath &exe, const QStringList &args);
CommandLine(const FilePath &exe, const QStringList &args, OsType osType);