Skip to content

Commit

Permalink
Use emplace_back()
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Feb 20, 2025
1 parent 1688923 commit 8331257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiffcomposite_int.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ TiffComponent* TiffSubIfd::doAddChild(TiffComponent::UniquePtr tiffComponent) {
throw Error(ErrorCode::kerErrorMessage, "dynamic_cast to TiffDirectory failed");
}
tiffComponent.release();
ifds_.push_back(std::unique_ptr<TiffDirectory>(d));
ifds_.emplace_back(d);
return d;
} // TiffSubIfd::doAddChild

Expand Down

0 comments on commit 8331257

Please sign in to comment.