Skip to content

Commit f07c88d

Browse files
committed
Use .front() to avoid warning from static analysis
1 parent 4d99c2a commit f07c88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/photoshop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ DataBuf Photoshop::setIptcIrb(const byte* pPsData, size_t sizePsData, const Iptc
139139
DataBuf rawIptc = IptcParser::encode(iptcData);
140140
if (!rawIptc.empty()) {
141141
std::array<byte, 12> tmpBuf;
142-
std::copy_n(Photoshop::irbId_[0], 4, tmpBuf.data());
142+
std::copy_n(Photoshop::irbId_.front(), 4, tmpBuf.data());
143143
us2Data(tmpBuf.data() + 4, iptc_, bigEndian);
144144
tmpBuf[6] = 0;
145145
tmpBuf[7] = 0;

0 commit comments

Comments
 (0)