Fix MSVC 64bit warnings about truncation from size_t to int.

Change-Id: I9aea91aeb9f71817e9cc612d41351dbc98056500
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
Friedemann Kleint 2012-07-26 09:14:26 +02:00 committed by Qt by Nokia
parent e3ccc032f0
commit a0373d8d36

View File

@ -789,11 +789,11 @@ struct QMetaTypeId< DOUBLE_ARG_TEMPLATE<T, U> > \
name.append('<'); \
const char *tName = QMetaType::typeName(qMetaTypeId<T>()); \
Q_ASSERT(tName); \
name.append(tName, strlen(tName)); \
name.append(tName, int(strlen(tName))); \
name.append(','); \
const char *uName = QMetaType::typeName(qMetaTypeId<U>()); \
Q_ASSERT(uName); \
name.append(uName, strlen(uName)); \
name.append(uName, int(strlen(uName))); \
if (name.last() == '>') \
name.append(' '); \
name.append('>'); \