TagBuilder: add method AddEmptyItem()
This commit is contained in:
@@ -218,6 +218,16 @@ TagBuilder::AddItem(TagType type, const char *value)
|
||||
AddItem(type, value, strlen(value));
|
||||
}
|
||||
|
||||
void
|
||||
TagBuilder::AddEmptyItem(TagType type)
|
||||
{
|
||||
tag_pool_lock.lock();
|
||||
auto i = tag_pool_get_item(type, "", 0);
|
||||
tag_pool_lock.unlock();
|
||||
|
||||
items.push_back(i);
|
||||
}
|
||||
|
||||
void
|
||||
TagBuilder::RemoveAll()
|
||||
{
|
||||
|
Reference in New Issue
Block a user