Use emplace().
This commit is contained in:
parent
166b5b834d
commit
2e8ce712ec
@ -1965,7 +1965,7 @@ TiffComponent::UniquePtr TiffCreator::create(uint32_t extendedTag, IfdId group)
|
||||
|
||||
void TiffCreator::getPath(TiffPath& tiffPath, uint32_t extendedTag, IfdId group, uint32_t root) {
|
||||
while (true) {
|
||||
tiffPath.push(TiffPathItem(extendedTag, group));
|
||||
tiffPath.emplace(extendedTag, group);
|
||||
const auto ts = tiffTreeTable_.find(TiffGroupKey(root, group));
|
||||
assert(ts != tiffTreeTable_.end());
|
||||
extendedTag = ts->second.second;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user