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