summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-09-12 15:35:31 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-13 16:46:19 +0200
commit6fd01fc9649d15fab507570e8d8219e861abc588 (patch)
tree101b9586a19019563c8f39a95598e9fdb515d78e
parentedfdaba696d94206794203f9621d7e3aa8e5ab26 (diff)
Kernel: Fix gcc warning about narrowing conversion
Fix gcc 4.7.1 warning: 'narrowing conversion of 'value' from 'int' to 'uint {aka unsigned int}' inside { } is ill-formed in C++11 ' Change-Id: I64ee1a35ecd60cc6a5d7d024c5f903078b3d4f60 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
-rw-r--r--src/corelib/kernel/qcoreapplication_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication_win.cpp b/src/corelib/kernel/qcoreapplication_win.cpp
index bba27272f9..eb1201a6b4 100644
--- a/src/corelib/kernel/qcoreapplication_win.cpp
+++ b/src/corelib/kernel/qcoreapplication_win.cpp
@@ -522,7 +522,7 @@ struct FLAG_STRING_STRUCT
const char* str;
};
-FLAG_STRING_STRUCT FLAG_STRING(int value = 0, const char *c = 0)
+FLAG_STRING_STRUCT FLAG_STRING(uint value = 0, const char *c = 0)
{
FLAG_STRING_STRUCT s = {value, c};
return s;