rcc: use new qEnvironmentVariableIsEmpty()
Change-Id: I48dd9b7b8dd51e1c662273eb37ac2e1f4c1c4d15 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
a2fbe8056c
commit
0a3a70a6cb
@ -264,7 +264,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
// rcc uses a QHash to store files in the resource system.
|
// rcc uses a QHash to store files in the resource system.
|
||||||
// we must force a certain hash order when testing or tst_rcc will fail, see QTBUG-25078
|
// we must force a certain hash order when testing or tst_rcc will fail, see QTBUG-25078
|
||||||
if (!qgetenv("QT_RCC_TEST").isEmpty() && !qt_qhash_seed.testAndSetRelaxed(-1, 0))
|
if (!qEnvironmentVariableIsEmpty("QT_RCC_TEST") && !qt_qhash_seed.testAndSetRelaxed(-1, 0))
|
||||||
qFatal("Cannot force QHash seed for testing as requested");
|
qFatal("Cannot force QHash seed for testing as requested");
|
||||||
|
|
||||||
return QT_PREPEND_NAMESPACE(runRcc)(argc, argv);
|
return QT_PREPEND_NAMESPACE(runRcc)(argc, argv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user