QmlProfiler: Add default template param to QmlEvent::number

The number type used to transfer data from the internal to the external
list is an implementation detail, and qint64 will always work. Users
can optimize the casting by choosing the same type as the external list
uses to store the numbers, though.

Change-Id: I069c31b130960519e7d27ec79a456924f7777364
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2016-06-06 15:38:14 +02:00
parent 0023c87098
commit 8bdc612b3a

View File

@@ -146,7 +146,7 @@ struct QmlEvent {
setNumbers<std::initializer_list<Number>, Number>(numbers);
}
template<typename Container, typename Number>
template<typename Container, typename Number = qint64>
Container numbers() const
{
Container container;