forked from qt-creator/qt-creator
ClangBackend: speedup qgetenv calls
Change-Id: I2968380064154844a8115413d3ebdcdb5748f254 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -44,7 +44,7 @@ ConnectionClient::ConnectionClient()
|
||||
{
|
||||
processAliveTimer.setInterval(10000);
|
||||
|
||||
const bool startAliveTimer = !qgetenv("QTC_CLANG_NO_ALIVE_TIMER").toInt();
|
||||
static const bool startAliveTimer = !qEnvironmentVariableIntValue("QTC_CLANG_NO_ALIVE_TIMER");
|
||||
|
||||
if (startAliveTimer)
|
||||
connectAliveTimer();
|
||||
|
||||
Reference in New Issue
Block a user