summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-03-20 22:57:59 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-03-20 23:32:28 (GMT)
commit7c594907d521bb29ecca1b953a4ceea49ec32dd4 (patch)
tree98d614193f484a9f62f3080de3b55b43888f6700 /src/dbus
parent69e873e2bfae3fc028c21d93112a75008c3bb58b (diff)
downloadQt-7c594907d521bb29ecca1b953a4ceea49ec32dd4.zip
Qt-7c594907d521bb29ecca1b953a4ceea49ec32dd4.tar.gz
Qt-7c594907d521bb29ecca1b953a4ceea49ec32dd4.tar.bz2
Compile Qt in C++0x mode.
This is not valid in C++0x: char str[] = { 128, 0 }; Because 128 cannot be represented in a char. The same applies to conversion from int to qreal: it's a narrowing conversion, with possible data loss. More info: http://www2.research.att.com/~bs/C++0xFAQ.html#narrowing Reviewed-by: Trust Me
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusmarshaller.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/qdbusmarshaller.cpp b/src/dbus/qdbusmarshaller.cpp
index 8ec328e..60b3c09 100644
--- a/src/dbus/qdbusmarshaller.cpp
+++ b/src/dbus/qdbusmarshaller.cpp
@@ -514,7 +514,7 @@ bool QDBusMarshaller::appendCrossMarshalling(QDBusDemarshaller *demarshaller)
void* data;
q_dbus_message_iter_get_fixed_array(&sub,&data,&len);
- char signature[2] = { element, 0 };
+ char signature[2] = { char(element), 0 };
q_dbus_message_iter_open_container(&iterator, DBUS_TYPE_ARRAY, signature, &sub);
q_dbus_message_iter_append_fixed_array(&sub, element, &data, len);
q_dbus_message_iter_close_container(&iterator, &sub);