From 3ec60ca51bc231b6330c766121619f184aa44660 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 28 Nov 2011 16:02:50 +0100 Subject: QtCore/IO: Fix some warnings on Windows (64bit). - Warnings about conversion from size_t to int - Unused variable. Change-Id: I4a79fa6dc4b95551a64d282ae4307b0edff41201 Reviewed-by: Thiago Macieira --- src/corelib/io/qprocess_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/io/qprocess_win.cpp') diff --git a/src/corelib/io/qprocess_win.cpp b/src/corelib/io/qprocess_win.cpp index 510f72312e..4601f23791 100644 --- a/src/corelib/io/qprocess_win.cpp +++ b/src/corelib/io/qprocess_win.cpp @@ -282,7 +282,7 @@ QProcessEnvironment QProcessEnvironment::systemEnvironment() // This is not the case the other way round. if (wchar_t *envStrings = GetEnvironmentStringsW()) { for (const wchar_t *entry = envStrings; *entry; ) { - int entryLen = wcslen(entry); + const int entryLen = int(wcslen(entry)); if (const wchar_t *equal = wcschr(entry, L'=')) { int nameLen = equal - entry; QString name = QString::fromWCharArray(entry, nameLen); -- cgit v1.2.3