forked from qt-creator/qt-creator
ConsoleProcess: Build against 5.14/MSVC
Fix consoleprocess_win.cpp(382): error C2668: 'QListSpecialMethods<QString>::join': ambiguous call to overloaded function /src/corelib/text/qstringlist.h(243): note: could be 'QString QListSpecialMethods<QString>::join(QChar) const' /src/corelib/text/qstringlist.h(233): note: or 'QString QListSpecialMethods<QString>::join(QStringView) const' consoleprocess_win.cpp(382): note: while trying to match the argument list '(char)' Change-Id: Ib1dae4e45c7a9d27f780245ac38952740562b4bf Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
@@ -379,7 +379,8 @@ bool ConsoleProcess::startTerminalEmulator(QSettings *, const QString &workingDi
|
|||||||
// cmdLine is assumed to be detached -
|
// cmdLine is assumed to be detached -
|
||||||
// https://blogs.msdn.microsoft.com/oldnewthing/20090601-00/?p=18083
|
// https://blogs.msdn.microsoft.com/oldnewthing/20090601-00/?p=18083
|
||||||
|
|
||||||
QString totalEnvironment = env.toStringList().join('\0') + '\0';
|
|
||||||
|
QString totalEnvironment = env.toStringList().join(QChar(QChar::Null)) + QChar(QChar::Null);
|
||||||
LPVOID envPtr = (env != Utils::Environment::systemEnvironment())
|
LPVOID envPtr = (env != Utils::Environment::systemEnvironment())
|
||||||
? (WCHAR *)(totalEnvironment.utf16()) : nullptr;
|
? (WCHAR *)(totalEnvironment.utf16()) : nullptr;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user