From 2e8ce712ec18969fbb015d15ca56185c1cb26911 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Thu, 4 Aug 2022 10:39:58 -0400 Subject: [PATCH] Use emplace(). --- src/tiffimage_int.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tiffimage_int.cpp b/src/tiffimage_int.cpp index ee8e0168..a4db6106 100644 --- a/src/tiffimage_int.cpp +++ b/src/tiffimage_int.cpp @@ -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;