diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-21 14:03:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-22 09:51:15 +0200 |
commit | 631eed68d0ea5e1e8e5c2ad7d56b3dcbfbcb4aa0 (patch) | |
tree | 5f54dbcd548b781a029af3fda0baab0180c6cdc4 /src/corelib/io/qprocess_win.cpp | |
parent | 1b0e6b909f7d508f5c2eb0247ee3d6e5d0d5325c (diff) |
Fix some MSVC conversion warnings
Change-Id: Ib2c1fdb7b84f89201136438362ab5962126ec929
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/corelib/io/qprocess_win.cpp')
-rw-r--r-- | src/corelib/io/qprocess_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/io/qprocess_win.cpp b/src/corelib/io/qprocess_win.cpp index 148c6378c6..2663316de0 100644 --- a/src/corelib/io/qprocess_win.cpp +++ b/src/corelib/io/qprocess_win.cpp @@ -452,7 +452,7 @@ static QByteArray qt_create_environment(const QProcessEnvironmentPrivate::Map &e copy.insert(rootKey, QString::fromLocal8Bit(systemRoot)); } - int pos = 0; + qsizetype pos = 0; auto it = copy.constBegin(); const auto end = copy.constEnd(); @@ -460,7 +460,7 @@ static QByteArray qt_create_environment(const QProcessEnvironmentPrivate::Map &e static const wchar_t nul = L'\0'; for ( ; it != end; ++it) { - uint tmpSize = sizeof(wchar_t) * (it.key().length() + it.value().length() + 2); + qsizetype tmpSize = sizeof(wchar_t) * (it.key().length() + it.value().length() + 2); // ignore empty strings if (tmpSize == sizeof(wchar_t) * 2) continue; |