diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-07-20 09:10:17 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-07-20 11:00:35 (GMT) |
commit | 329c9329a61267ede929a96af6b26a286c666fc8 (patch) | |
tree | c084eff5a5f4b2e9adf91aab338d5da4efab9b99 /tests/auto/compilerwarnings | |
parent | 41c1049db2202c1ef5e97243f1ee2695db78d9de (diff) | |
download | Qt-329c9329a61267ede929a96af6b26a286c666fc8.zip Qt-329c9329a61267ede929a96af6b26a286c666fc8.tar.gz Qt-329c9329a61267ede929a96af6b26a286c666fc8.tar.bz2 |
WinCE build fixes. Use qgetenv instead of getenv...
Reviewed-by: thartman
Diffstat (limited to 'tests/auto/compilerwarnings')
-rw-r--r-- | tests/auto/compilerwarnings/tst_compilerwarnings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/compilerwarnings/tst_compilerwarnings.cpp b/tests/auto/compilerwarnings/tst_compilerwarnings.cpp index 2f5cf6c..57795c9 100644 --- a/tests/auto/compilerwarnings/tst_compilerwarnings.cpp +++ b/tests/auto/compilerwarnings/tst_compilerwarnings.cpp @@ -67,8 +67,8 @@ private slots: static QStringList getFeatures() { QStringList srcDirs; - srcDirs << QString::fromLocal8Bit(getenv("QTDIR")) - << QString::fromLocal8Bit(getenv("QTSRCDIR")); + srcDirs << QString::fromLocal8Bit(qgetenv("QTDIR")) + << QString::fromLocal8Bit(qgetenv("QTSRCDIR")); QString featurefile; foreach (QString dir, srcDirs) { @@ -157,7 +157,7 @@ void tst_CompilerWarnings::warnings() QStringList args; QString compilerName; - static QString qtDir = QString::fromLocal8Bit(getenv("QTDIR")); + static QString qtDir = QString::fromLocal8Bit(qgetenv("QTDIR")); QVERIFY2(!qtDir.isEmpty(), "This test needs $QTDIR"); args << cflags; |