forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user