mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 15:34:36 +00:00
Support Create() not creating an item.
This commit is contained in:
parent
cf23441116
commit
216a4b7663
@ -53,8 +53,11 @@ public:
|
|||||||
if( pit == m_pending.end() )
|
if( pit == m_pending.end() )
|
||||||
{
|
{
|
||||||
T item = Create( name );
|
T item = Create( name );
|
||||||
|
if( item )
|
||||||
|
{
|
||||||
m_pending.emplace( name, item );
|
m_pending.emplace( name, item );
|
||||||
Query( name );
|
Query( name );
|
||||||
|
}
|
||||||
return item;
|
return item;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user