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:
parent
aac6cda804
commit
e8aa70c2d6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user