Skip to content

Commit 8e5b811

Browse files
Use emplace_back
1 parent a608138 commit 8e5b811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jpgimage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, in
412412
}
413413
} else if (option == kpsIptcErase && signature == "Photoshop 3.0") {
414414
// delete IPTC data segment from JPEG
415-
iptcDataSegs.push_back(std::make_pair(io_->tell() - size, io_->tell()));
415+
iptcDataSegs.emplace_back(io_->tell() - size, io_->tell());
416416
} else if (bPrint) {
417417
const size_t start = 2;
418418
const size_t end = size > 34 ? 34 : size;
@@ -518,7 +518,7 @@ void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, in
518518
}
519519
if (option == kpsIptcErase && !iptcDataSegs.empty()) {
520520
// Add a sentinel to the end of iptcDataSegs
521-
iptcDataSegs.push_back(std::make_pair(io_->size(), 0));
521+
iptcDataSegs.emplace_back(io_->size(), 0);
522522

523523
// $ dd bs=1 skip=$((0)) count=$((13164)) if=ETH0138028.jpg of=E1.jpg
524524
// $ dd bs=1 skip=$((49304)) count=2000000 if=ETH0138028.jpg of=E2.jpg

0 commit comments

Comments
 (0)