QmlProfiler: Fix compile warning on Windows.

c:\dev\insrc\devqc\src\plugins\qmlprofiler\qmlevent.h(274): warning
C4267: '=': conversion from 'size_t' to 'quint16', possible loss of data

Change-Id: I86ab7a9b2d01a3da70dd765cb64c6e58c1044cc1
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
David Schulz
2016-05-11 10:53:25 +02:00
parent ddefe062c7
commit 1c3e122d43

View File

@@ -271,7 +271,7 @@ private:
{
Number *data;
m_dataLength = squeezable<size_t, quint16>(numbers.size()) ?
numbers.size() : std::numeric_limits<quint16>::max();
static_cast<quint16>(numbers.size()) : std::numeric_limits<quint16>::max();
if (m_dataLength > sizeof(m_data) / sizeof(Number)) {
if (squeeze<Container, Number>(numbers))
return;