forked from qt-creator/qt-creator
Process: Read QTC_USE_QPROCESS just once
And store it in static variable. Change-Id: I983ba4d23563ab412ba8db5e4ea4cc1b7a75dba7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -644,7 +644,7 @@ private:
|
||||
ProcessLauncherBlockingImpl *m_blockingImpl = nullptr;
|
||||
};
|
||||
|
||||
static ProcessImpl defaultProcessImpl()
|
||||
static ProcessImpl defaultProcessImplHelper()
|
||||
{
|
||||
const QString value = qtcEnvironmentVariable("QTC_USE_QPROCESS", "TRUE").toUpper();
|
||||
if (value != "FALSE" && value != "0")
|
||||
@@ -652,6 +652,12 @@ static ProcessImpl defaultProcessImpl()
|
||||
return ProcessImpl::ProcessLauncher;
|
||||
}
|
||||
|
||||
static ProcessImpl defaultProcessImpl()
|
||||
{
|
||||
static const ProcessImpl impl = defaultProcessImplHelper();
|
||||
return impl;
|
||||
}
|
||||
|
||||
class ProcessInterfaceSignal
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user