QFileSelector: use qEnvironmentVariableIsEmpty()

It doesn't allocate memory, so cannot throw and is a lot faster
than qgetenv().

Change-Id: Ib303f00ce45816677ffca0580cc6b91a14a0e5be
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
Marc Mutz 2014-09-07 21:21:27 +02:00
parent aac6cda804
commit e8aa70c2d6

View File

@ -343,7 +343,7 @@ void QFileSelectorPrivate::updateSelectors()
if (envSelectors.count())
sharedData->staticSelectors << envSelectors;
if (!qgetenv(env_override).isEmpty())
if (!qEnvironmentVariableIsEmpty(env_override))
return;
sharedData->staticSelectors << sharedData->preloadedStatics; //Potential for static selectors from other modules