diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-30 08:56:25 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-06-30 15:08:36 +0200 |
commit | 3b93882e2b2397b7e259da30552ff1ee05e0036c (patch) | |
tree | 4b3e28b5071c610f58d6d3d94a488b26367049a0 /src/core/devtools_manager_delegate_qt.cpp | |
parent | 7c966f59a8f8f8a51ffe4325f0809e0d3363a9fc (diff) |
Replace qgetenv with qEnvironmentVariable
This preserves unicode characters in the environment variable on
Windows.
Fixes: QTBUG-85054
Change-Id: I3352cc3db4ce8d7b9b352c1634e3239954780618
Reviewed-by: Kirill Burtsev <kirill.burtsev@qt.io>
Diffstat (limited to 'src/core/devtools_manager_delegate_qt.cpp')
-rw-r--r-- | src/core/devtools_manager_delegate_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/devtools_manager_delegate_qt.cpp b/src/core/devtools_manager_delegate_qt.cpp index ecd2a7d40..8c4037879 100644 --- a/src/core/devtools_manager_delegate_qt.cpp +++ b/src/core/devtools_manager_delegate_qt.cpp @@ -114,7 +114,7 @@ DevToolsServerQt::~DevToolsServerQt() void DevToolsServerQt::parseAddressAndPort() { - const QString inspectorEnv = QString::fromUtf8(qgetenv("QTWEBENGINE_REMOTE_DEBUGGING")); + const QString inspectorEnv = qEnvironmentVariable("QTWEBENGINE_REMOTE_DEBUGGING"); const base::CommandLine &commandLine = *base::CommandLine::ForCurrentProcess(); QString portStr; |