forked from qt-creator/qt-creator
QmlProfiler: Avoid some 0 as nullptr warnings
Change-Id: I4763a22c6624eaffbb583bf26bf74a3e282b042f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -103,7 +103,7 @@ QVariantMap MemoryUsageModel::details(int index) const
|
||||
else
|
||||
result.insert(QLatin1String("displayName"), tr("Memory Freed"));
|
||||
|
||||
result.insert(tr("Total"), tr("%n bytes", 0, ev->size));
|
||||
result.insert(tr("Total"), tr("%n byte(s)", nullptr, ev->size));
|
||||
if (ev->allocations > 0) {
|
||||
result.insert(tr("Allocated"), tr("%1 bytes").arg(ev->allocated));
|
||||
result.insert(tr("Allocations"), QString::number(ev->allocations));
|
||||
|
||||
Reference in New Issue
Block a user