Warning, /sdk/clazy/tests/qgetenv/main.cpp.fixed.expected is written in an unsupported language. File is not indexed.
0001 #include <QtCore/qglobal.h> 0002 #include <QtCore/qbytearray.h> 0003 0004 int test() 0005 { 0006 0007 qEnvironmentVariableIsEmpty("Foo"); 0008 bool b = qEnvironmentVariableIsSet("Foo"); 0009 QByteArray ba = qgetenv("Foo"); 0010 int fixmeWarnAboutBaseChange = qEnvironmentVariableIntValue("Foo"); 0011 int fixmeWarnAboutBaseChangeAndKeepOk = qEnvironmentVariableIntValue("Foo", &b); 0012 int dontfix = qgetenv("Foo").toInt(&b, 16); 0013 int fixmeWithoutChangingInternalBase = qEnvironmentVariableIntValue("Foo", &b); 0014 int fixmeWithoutChangingInternalBaseAndIgnoringOk = qEnvironmentVariableIntValue("Foo"); 0015 return 0; 0016 }