Use emplace().

main
Kevin Backhouse 3 years ago committed by Rosen Penev
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…
Cancel
Save