Utils: Compile with QT_NO_CAST_FROM_ASCII.

Change-Id: I5cd5607fcd3311915217a1615b948587ef808cfa
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2012-01-04 17:34:08 +01:00
parent 5a31b0067d
commit ac54974b32
20 changed files with 48 additions and 45 deletions

View File

@@ -663,12 +663,13 @@ void QtcProcess::start()
// That's brain dead, and we work around it
#if defined(Q_OS_UNIX)
# if defined(Q_OS_MAC)
static const char libraryPath[] = "DYLD_LIBRARY_PATH";
static const char libraryPathC[] = "DYLD_LIBRARY_PATH";
# else
static const char libraryPath[] = "LD_LIBRARY_PATH";
static const char libraryPathC[] = "LD_LIBRARY_PATH";
# endif
const QString libraryPath = QLatin1String(libraryPathC);
if (env.constFind(libraryPath) == env.constEnd())
env.set(libraryPath, QLatin1String(""));
env.set(libraryPath, QString());
#endif
QProcess::setEnvironment(env.toStringList());
} else {