Support Create() not creating an item.

This commit is contained in:
Bartosz Taudul 2024-05-23 19:47:40 +02:00
parent cf23441116
commit 216a4b7663
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -53,8 +53,11 @@ public:
if( pit == m_pending.end() ) if( pit == m_pending.end() )
{ {
T item = Create( name ); T item = Create( name );
m_pending.emplace( name, item ); if( item )
Query( name ); {
m_pending.emplace( name, item );
Query( name );
}
return item; return item;
} }
else else