1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
#include <QtCore/qglobal.h>
#include <QtCore/qbytearray.h>
int test()
{
qEnvironmentVariableIsEmpty("Foo");
bool b = qEnvironmentVariableIsSet("Foo");
QByteArray ba = qgetenv("Foo");
int fixmeWarnAboutBaseChange = qEnvironmentVariableIntValue("Foo");
int fixmeWarnAboutBaseChangeAndKeepOk = qEnvironmentVariableIntValue("Foo", &b);
int dontfix = qgetenv("Foo").toInt(&b, 16);
int fixmeWithoutChangingInternalBase = qEnvironmentVariableIntValue("Foo", &b);
int fixmeWithoutChangingInternalBaseAndIgnoringOk = qEnvironmentVariableIntValue("Foo");
return 0;
}
|